This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51560] New: std::set<T>::cbegin()/cend() etc. return iterator instead of const_iterator
- From: "carsten_neumann at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Dec 2011 00:40:31 +0000
- Subject: [Bug libstdc++/51560] New: std::set<T>::cbegin()/cend() etc. return iterator instead of const_iterator
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51560
Bug #: 51560
Summary: std::set<T>::cbegin()/cend() etc. return iterator
instead of const_iterator
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: carsten_neumann@gmx.net
Created attachment 26096
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26096
Trivial (untested) patch
The return type of the member functions cbegin,cend,crbegin,crend for std::set
and std::multiset are wrong, they should be
const_iterator/const_reverse_iterator respectively.
Attaching the trivial patch (untested).
I don't have copyright assignment, but since the patch is trivial and only
changes a few lines I'm hoping it's not needed.