multiset forward iterator is const

David Marwood marwood@infranetsolutions.com
Wed Nov 10 14:11:00 GMT 1999


That's interesting.  What I'm working from is the "Working Paper for
Draft Proposed International Standard for Information Systems --
Programming Language C++" dated Dec 2, 1996.  Page 24-4, section
24.1.3 Forward iterators, has a table that says the expression "*a"
for iterator 'a' must return a T& (no mention of returning a
multiset_type::reference).

I can believe there are contradictions; it is, after all, a draft.

David

Matt Austern writes:
: On Nov 10, 12:01pm, David Marwood wrote:
: 
: > To be more clear, multiset_type::reference and int& must be the same
: > type and they are not.
: 
: That's unclear.  The C++ standard is contradictory, and this is
: still an open issue before the library working group.  The
: standardization committee hasn't yet decided how this issue
: should be resolved.  (There are several related issues.  Some of
: the signatures in set and multiset make no sense unless iterator
: and const_iterator are the same type.)
: 
: 			--Matt


More information about the Libstdc++ mailing list