112. Minor typo in ostreambuf_iterator constructor

Section: [ostreambuf.iter.cons] Status: TC1 Submitter: Matt Austern Opened: 1998-10-20 Last modified: 2016-02-10

Priority: Not Prioritized

View all issues with TC1 status.


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

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.