Movatterモバイル変換


[0]ホーム

URL:



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

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

Section: 27.4.4.4[string.io]Status:TC1Submitter: Nathan MyersOpened: 1998-08-06Last modified: 2016-01-28

Priority:Not Prioritized

View all otherissues in [string.io].

View all issues withTC1 status.

Duplicate of:67

Discussion:

In the description of operator<< applied to strings, the standard says that usesthe 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 27.4.4.4[string.io] paragraph 4 from:

    "... wheren is the smaller ofos.width() andstr.size();..."

to:

    "... wheren is the larger ofos.width() andstr.size();..."


[8]ページ先頭

©2009-2026 Movatter.jp