tuple (tuple<>::operator=(tuple&&)): Specify as noexcept.
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 19 May 2011 17:20:22 +0000 (17:20 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 19 May 2011 17:20:22 +0000 (17:20 +0000)
commit173f26ae56c9d4ac260db7a3d7b3ee44b7d07bf2
treec54b3620070b6805a4331466f54424e6a1550eee
parent12d844c83053a523f291565a757220fee255995c
tuple (tuple<>::operator=(tuple&&)): Specify as noexcept.

2011-05-19  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/tuple (tuple<>::operator=(tuple&&)): Specify as
        noexcept.
(__get_helper): Likewise.
(_Head_base<>::_M_head, _Tuple_impl<>::_M_head, _M_tail): Likewise.
* include/bits/move.h (swap): Likewise.
* include/bits/algorithmfwd.h (swap): Adjust.
* include/bits/stl_pair.h (pair<>::operator=(pair&&)): Spec noexcept.
* testsuite/util/testsuite_allocator.h (uneq_allocator): In C++0x
mode, prefer delete to access control to make the type not copy
assignable.
* testsuite/util/testsuite_tr1.h: Add test classes.
* testsuite/20_util/tuple/noexcept_swap.cc: New.
* testsuite/20_util/tuple/noexcept_move_assign.cc: Likewise.
* testsuite/25_algorithms/reverse/moveable.cc: Likewise, prefer
delete to access control.
* testsuite/25_algorithms/swap_ranges/moveable.cc: Likewise.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-warning
line numbers.

From-SVN: r173917
12 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/algorithmfwd.h
libstdc++-v3/include/bits/move.h
libstdc++-v3/include/bits/stl_pair.h
libstdc++-v3/include/std/tuple
libstdc++-v3/testsuite/20_util/tuple/noexcept_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/tuple/noexcept_swap.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc
libstdc++-v3/testsuite/25_algorithms/reverse/moveable.cc
libstdc++-v3/testsuite/25_algorithms/swap_ranges/moveable.cc
libstdc++-v3/testsuite/util/testsuite_allocator.h
libstdc++-v3/testsuite/util/testsuite_tr1.h