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.

115. Typo in strstream constructors

Section: 99 [depr.strstream.cons]Status:TC1Submitter: Steve ClamageOpened: 1998-11-02Last modified: 2016-01-28

Priority:Not Prioritized

View all issues withTC1 status.

Discussion:

D.7.4.1 strstream constructors paragraph 2 says:

Effects: Constructs an object of class strstream, initializing the base class with iostream(& sb) and initializing sb with one of the two constructors:

- If mode&app==0, then s shall designate the first element of an array of n elements. The constructor is strstreambuf(s, n, s).

- If mode&app==0, then s shall designate the first element of an array of n elements that contains an NTBS whose first element is designated by s. The constructor is strstreambuf(s, n, s+std::strlen(s)).

Notice the second condition is the same as the first. I think the second conditionshould be "If mode&app==app", or "mode&app!=0", meaning thatthe append bit is set.

Proposed resolution:

In [depr.ostrstream.cons] paragraph 2 and 99 [depr.strstream.cons]paragraph 2, change the first condition to(mode&app)==0and the second condition to(mode&app)!=0.


[8]ページ先頭

©2009-2026 Movatter.jp