This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51560] std::set<T>::cbegin()/cend() etc. return iterator instead of const_iterator
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Dec 2011 01:02:32 +0000
- Subject: [Bug libstdc++/51560] std::set<T>::cbegin()/cend() etc. return iterator instead of const_iterator
- Auto-submitted: auto-generated
- References: <bug-51560-4@http.gcc.gnu.org/bugzilla/>
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."