[Bug libstdc++/78134] set::set lower_bound() for transparent comparator returns const_iterator

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 11 14:45:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78134

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Jan 11 14:44:15 2017
New Revision: 244318

URL: https://gcc.gnu.org/viewcvs?rev=244318&root=gcc&view=rev
Log:
PR78134 fix return types of heterogeneous lookup functions

        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
        * testsuite/23_containers/multimap/operations/2.cc
        * testsuite/23_containers/multiset/operations/2.cc
        * testsuite/23_containers/set/operations/2.cc

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_map.h
    trunk/libstdc++-v3/include/bits/stl_multimap.h
    trunk/libstdc++-v3/include/bits/stl_multiset.h
    trunk/libstdc++-v3/include/bits/stl_set.h
    trunk/libstdc++-v3/testsuite/23_containers/map/operations/2.cc
    trunk/libstdc++-v3/testsuite/23_containers/multimap/operations/2.cc
    trunk/libstdc++-v3/testsuite/23_containers/multiset/operations/2.cc
    trunk/libstdc++-v3/testsuite/23_containers/set/operations/2.cc


More information about the Gcc-bugs mailing list