This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, libstdc++/68877] Reimplement __is_[nothrow_]swappable
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Daniel Krügler <daniel dot kruegler at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 12 Jan 2016 21:20:30 +0000
- Subject: Re: [Patch, libstdc++/68877] Reimplement __is_[nothrow_]swappable
- Authentication-results: sourceware.org; auth=none
- References: <CAGNvRgB=KXLJ+Ppug_HE+09-i5OCR72JCA3OYUV5MoZ6paye8w at mail dot gmail dot com> <CAGNvRgC44=onghtfr5AqnuH56jUx1-sn2bMp5j7YpW5S27mWPQ at mail dot gmail dot com> <20151222214257 dot GI5356 at redhat dot com> <CAGNvRgB0oHAkQo4r2AOq2ycTUTt+aN6=x3=bnmy6VFsrTdixLQ at mail dot gmail dot com>
On 23/12/15 22:15 +0100, Daniel Krügler wrote:
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.
Committed to trunk now, thanks!