This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of TC1 status.

25. String operator<< uses width() value wrong

Section: [] Status: TC1 Submitter: Nathan Myers Opened: 1998-08-06 Last modified: 2017-02-03

Priority: Not Prioritized

View all other issues in [].

View all issues with TC1 status.

Duplicate of: 67


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.

Proposed resolution:

Change [] paragraph 4 from:

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


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