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

100. Insert iterators/ostream_iterators overconstrained

Section: 27.5.2 [insert.iterators], 27.6.4 [ostreambuf.iterator] Status: NAD Submitter: AFNOR Opened: 1998-10-07 Last modified: 2017-02-03

Priority: Not Prioritized

View all other issues in [insert.iterators].

View all issues with NAD status.


Overspecified For an insert iterator it, the expression *it is required to return a reference to it. This is a simple possible implementation, but as the SGI STL documentation says, not the only one, and the user should not assume that this is the case.


The LWG believes this causes no harm and is not a defect in the standard. The only example anyone could come up with caused some incorrect code to work, rather than the other way around.