This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: multiset forward iterator is const



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]