Re: [PATCH] Use _GLIBCXX_NOEXCEPT_IF for std::swap

2019-05-03 Thread Stephan Bergmann
On 03/05/2019 00:30, Jonathan Wakely wrote: On 02/05/19 21:33 +0100, Jonathan Wakely wrote: This was also reported as https://gcc.gnu.org/PR90314 And here's what I've tested and committed. Thanks, that fixes things for me.

Re: [PATCH] Use _GLIBCXX_NOEXCEPT_IF for std::swap

2019-05-02 Thread Jonathan Wakely
On 02/05/19 21:33 +0100, Jonathan Wakely wrote: On 02/05/19 20:11 +0100, Jonathan Wakely wrote: On 02/05/19 20:09 +0100, Jonathan Wakely wrote: On 02/05/19 20:34 +0200, Stephan Bergmann wrote: On 29/04/2019 15:26, Jonathan Wakely wrote: * include/bits/move.h (swap(T&, T&), swap(T (&)[N],

Re: [PATCH] Use _GLIBCXX_NOEXCEPT_IF for std::swap

2019-05-02 Thread Jonathan Wakely
On 02/05/19 20:11 +0100, Jonathan Wakely wrote: On 02/05/19 20:09 +0100, Jonathan Wakely wrote: On 02/05/19 20:34 +0200, Stephan Bergmann wrote: On 29/04/2019 15:26, Jonathan Wakely wrote: * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use _GLIBCXX_NOEXCEPT_IF to simpl

Re: [PATCH] Use _GLIBCXX_NOEXCEPT_IF for std::swap

2019-05-02 Thread Jonathan Wakely
On 02/05/19 20:09 +0100, Jonathan Wakely wrote: On 02/05/19 20:34 +0200, Stephan Bergmann wrote: On 29/04/2019 15:26, Jonathan Wakely wrote: * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use _GLIBCXX_NOEXCEPT_IF to simplify declarations. This just avoids having to rep

Re: [PATCH] Use _GLIBCXX_NOEXCEPT_IF for std::swap

2019-05-02 Thread Jonathan Wakely
On 02/05/19 20:34 +0200, Stephan Bergmann wrote: On 29/04/2019 15:26, Jonathan Wakely wrote: * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use _GLIBCXX_NOEXCEPT_IF to simplify declarations. This just avoids having to repeat the name and parameter-list of the functions.

Re: [PATCH] Use _GLIBCXX_NOEXCEPT_IF for std::swap

2019-05-02 Thread Stephan Bergmann
On 29/04/2019 15:26, Jonathan Wakely wrote: * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use _GLIBCXX_NOEXCEPT_IF to simplify declarations. This just avoids having to repeat the name and parameter-list of the functions. libstdc++-v3/include/std/type_traits still ha

[PATCH] Use _GLIBCXX_NOEXCEPT_IF for std::swap

2019-04-29 Thread Jonathan Wakely
* include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use _GLIBCXX_NOEXCEPT_IF to simplify declarations. This just avoids having to repeat the name and parameter-list of the functions. Tested powerpc64le-linux, committed to trunk. commit ce102c5eec35cd400a7be641f82ca1