Title
Forward Iterator implied mutability
Status
nad
Section
[forward.iterators]
Submitter
Dave Abrahams

Created on 2004-07-09.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

Yes, 24.1/3 does say that. But it's introductory material. The precise specification is in 24.1.3, and the requrements table there is right. We don't need to fine-tune introductory wording. (Especially since this wording is likely to be changed as part of the iterator overhaul.)

Date: 2004-07-09.00:00:00

24.1/3 says:

Forward iterators satisfy all the requirements of the input and output iterators and can be used whenever either kind is specified

The problem is that satisfying the requirements of output iterator means that you can always assign *something* into the result of dereferencing it. That makes almost all non-mutable forward iterators non-conforming. I think we need to sever the refinement relationship between forward iterator and output iterator.

Related issue: 200. But this is not a dup.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2781
2004-07-09 00:00:00admincreate