This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/68877] [6 Regression] swap for multidimensional array of int ill-formed
- 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, 12 Jan 2016 21:20:29 +0000
- Subject: [Bug libstdc++/68877] [6 Regression] swap for multidimensional array of int ill-formed
- Auto-submitted: auto-generated
- References: <bug-68877-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68877
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Jan 12 21:19:58 2016
New Revision: 232296
URL: https://gcc.gnu.org/viewcvs?rev=232296&root=gcc&view=rev
Log:
libstdc++/68877 Reimplement std::__is_swappable
2016-01-12 Daniel Kruegler <daniel.kruegler@gmail.com>
PR libstdc++/68877
* include/std/type_traits: Following N4511, reimplement __is_swappable
and __is_nothrow_swappable. Move __is_swappable to namespace std,
adjust callers. Use __is_nothrow_swappable in swap.
* include/bits/move.h: Use __is_nothrow_swappable in swap.
* testsuite/20_util/is_nothrow_swappable/value.cc: Extend; remove
__is_swappable related tests.
* testsuite/20_util/is_swappable/value.cc: New.
* testsuite/20_util/is_swappable/requirements/
explicit_instantiation.cc: New.
* testsuite/20_util/is_swappable/requirements/typedefs.cc: New.
* testsuite/25_algorithms/swap/68877.cc: New.
Added:
trunk/libstdc++-v3/testsuite/20_util/is_swappable/
trunk/libstdc++-v3/testsuite/20_util/is_swappable/requirements/
trunk/libstdc++-v3/testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc
trunk/libstdc++-v3/testsuite/20_util/is_swappable/requirements/typedefs.cc
trunk/libstdc++-v3/testsuite/20_util/is_swappable/value.cc
trunk/libstdc++-v3/testsuite/25_algorithms/swap/68877.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/move.h
trunk/libstdc++-v3/include/std/type_traits
trunk/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/value.cc