Title
Minor typo in ostreambuf_iterator constructor
Status
tc1
Section
[ostreambuf.iter.cons]
Submitter
Matt Austern

Created on 1998-10-20.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

In [ostreambuf.iter.cons]:

Move the current paragraph 1, which reads "Requires: s is not null.", from the first constructor to the second constructor.

Insert a new paragraph 1 Requires clause for the first constructor reading:

Requires: s.rdbuf() is not null.

Date: 1998-10-20.00:00:00

The requires clause for ostreambuf_iterator's constructor from an ostream_type (24.5.4.1, paragraph 1) reads "s is not null". However, s is a reference, and references can't be null.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg815
1998-10-20 00:00:00admincreate