77864 Fix noexcept conditions for map/set default constructors
authorJonathan Wakely <jwakely@redhat.com>
Wed, 5 Oct 2016 12:01:51 +0000 (13:01 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 5 Oct 2016 12:01:51 +0000 (13:01 +0100)
commita2a64b499a0251618fc156cc70c31a9692d079be
tree846057cdbb5a40053f0ce56722698e149e385dff
parentd72d690a921b82fe58e5dfdfd68dbdb70477d0de
77864 Fix noexcept conditions for map/set default constructors

PR libstdc++/77864
* include/bits/stl_map.h (map::map()): Use nothrow constructibility
of comparison function in conditional noexcept.
* include/bits/stl_multimap.h (multimap::multimap()): Likewise.
* include/bits/stl_multiset.h (multiset::multiset()): Likewise.
* include/bits/stl_set.h (set::set()): Likewise.
* testsuite/23_containers/map/cons/noexcept_default_construct.cc:
New test.
* testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
Likewise.
* testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
Likewise.
* testsuite/23_containers/set/cons/noexcept_default_construct.cc:
Likewise.

From-SVN: r240780
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_map.h
libstdc++-v3/include/bits/stl_multimap.h
libstdc++-v3/include/bits/stl_multiset.h
libstdc++-v3/include/bits/stl_set.h
libstdc++-v3/testsuite/23_containers/map/cons/noexcept_default_construct.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/multimap/cons/noexcept_default_construct.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/multiset/cons/noexcept_default_construct.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/set/cons/noexcept_default_construct.cc [new file with mode: 0644]