This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofTC1 status.
ostreambuf_iterator constructorSection: 24.6.5.2[ostreambuf.iter.cons]Status:TC1Submitter: Matt AusternOpened: 1998-10-20Last modified: 2016-01-28
Priority:Not Prioritized
View all issues withTC1 status.
Discussion:
Therequires clause forostreambuf_iterator'sconstructor from anostream_type (24.5.4.1, paragraph 1)reads "s is not null". However,s is areference, and references can't be null.
Proposed resolution:
In 24.6.5.2[ostreambuf.iter.cons]:
Move the current paragraph 1, which reads "Requires: s is notnull.", from the first constructor to the second constructor.
Insert a new paragraph 1 Requires clause for the first constructorreading:
Requires:
s.rdbuf()is not null.