PR libstdc++/55043 (again)
authorJonathan Wakely <jwakely.gcc@gmail.com>
Wed, 16 Jan 2013 23:56:00 +0000 (23:56 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 16 Jan 2013 23:56:00 +0000 (23:56 +0000)
commitb7202baf14d76d3647721cd3b42019dc0d9b3d26
tree9dc2e2bab905cf6f9951684712378f6af4f9ff90
parent9b940c6dd781581de1493d658182be58d2b4a93d
PR libstdc++/55043 (again)

PR libstdc++/55043 (again)
* include/bits/alloc_traits.h (allocator_traits::construct): Disable
unless construction would be well-formed.
(__allow_copy_cons, __check_copy_constructible): Define.
* include/bits/unordered_map.h (__check_copy_constructible): Use as
base class so copy constructor will be deleted if appropriate.
(is_copy_constructible): Remove specialization.
* include/bits/unordered_set.h: Likewise.
* include/debug/unordered_map.h: Undo previous commit. Default copy
and move constructors.
* include/debug/unordered_set.h: Likewise.
* include/profile/unordered_map.h: Undo previous commit.
* include/profile/unordered_set.h: Likewise.
* testsuite/23_containers/unordered_map/55043.cc: Fix test.
* testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
* testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
* testsuite/23_containers/unordered_set/55043.cc: Likewise.
* testsuite/23_containers/unordered_map/requirements/53339.cc: XFAIL,
cannot support incomplete types.
* testsuite/23_containers/unordered_multimap/requirements/53339.cc:
Likewise.

From-SVN: r195253
14 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/alloc_traits.h
libstdc++-v3/include/bits/unordered_map.h
libstdc++-v3/include/bits/unordered_set.h
libstdc++-v3/include/debug/unordered_map
libstdc++-v3/include/debug/unordered_set
libstdc++-v3/include/profile/unordered_map
libstdc++-v3/include/profile/unordered_set
libstdc++-v3/testsuite/23_containers/unordered_map/55043.cc
libstdc++-v3/testsuite/23_containers/unordered_map/requirements/53339.cc
libstdc++-v3/testsuite/23_containers/unordered_multimap/55043.cc
libstdc++-v3/testsuite/23_containers/unordered_multimap/requirements/53339.cc
libstdc++-v3/testsuite/23_containers/unordered_multiset/55043.cc
libstdc++-v3/testsuite/23_containers/unordered_set/55043.cc