This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/51560] std::set<T>::cbegin()/cend() etc. return iterator instead of const_iterator


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51560

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-15 01:02:32 UTC ---
It's the same type, as permitted by the standard:

"For associative containers where the value type is the same as the key type,
both iterator and const_iterator are constant iterators. It is unspeciïed
whether or not iterator and const_iterator are the same type."


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