This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/78134] set::set lower_bound() for transparent comparator returns 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: Tue, 14 Feb 2017 20:08:09 +0000
- Subject: [Bug libstdc++/78134] set::set lower_bound() for transparent comparator returns const_iterator
- Auto-submitted: auto-generated
- References: <bug-78134-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78134
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:07:37 2017
New Revision: 245447
URL: https://gcc.gnu.org/viewcvs?rev=245447&root=gcc&view=rev
Log:
PR78134 fix return types of heterogeneous lookup functions
Backport from mainline
2017-01-11 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/78134
* include/bits/stl_map.h (map::lower_bound, map::upper_bound)
(map::equal_range): Fix return type of heterogeneous overloads.
* include/bits/stl_multimap.h (multimap::lower_bound)
(multimap::upper_bound, multimap::equal_range): Likewise.
* include/bits/stl_multiset.h (multiset::lower_bound)
(multiset::upper_bound, multiset::equal_range): Likewise.
* include/bits/stl_set.h (set::lower_bound, set::upper_bound)
(set::equal_range): Likewise.
* testsuite/23_containers/map/operations/2.cc: Check return types.
* testsuite/23_containers/multimap/operations/2.cc: Likewise.
* testsuite/23_containers/multiset/operations/2.cc: Likewise.
* testsuite/23_containers/set/operations/2.cc: Likewise.
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/bits/stl_map.h
branches/gcc-6-branch/libstdc++-v3/include/bits/stl_multimap.h
branches/gcc-6-branch/libstdc++-v3/include/bits/stl_multiset.h
branches/gcc-6-branch/libstdc++-v3/include/bits/stl_set.h
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/map/operations/2.cc
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/multimap/operations/2.cc
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/multiset/operations/2.cc
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/set/operations/2.cc