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

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 15 01:07:00 GMT 2011


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 unspecified
whether or not iterator and const_iterator are the same type."



More information about the Gcc-bugs mailing list