Title
String operator<< uses width() value wrong
Status
tc1
Section
[string.io]
Submitter
Nathan Myers

Created on 1998-08-06.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [string.io] paragraph 4 from:

    "... where n is the smaller of os.width() and str.size(); ..."

to:

    "... where n is the larger of os.width() and str.size(); ..."

Date: 1998-08-06.00:00:00

In the description of operator<< applied to strings, the standard says that uses the smaller of os.width() and str.size(), to pad "as described in stage 3" elsewhere; but this is inconsistent, as this allows no possibility of space for padding.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg57
1998-08-06 00:00:00admincreate