Re: [committed] libstdc++: Simplify noexcept-specifiers for move constructors

2021-04-09 Thread Jonathan Wakely via Gcc-patches
On 08/04/21 17:50 +0100, Jonathan Wakely wrote: This puts the logic for the noexcept-specifier in one place, and then reuses it elsewhere. This means checking whether the move constructor can throw doesn't need to do overload resolution and then check whether some other constructor can throw, we

[committed] libstdc++: Simplify noexcept-specifiers for move constructors

2021-04-08 Thread Jonathan Wakely via Gcc-patches
This puts the logic for the noexcept-specifier in one place, and then reuses it elsewhere. This means checking whether the move constructor can throw doesn't need to do overload resolution and then check whether some other constructor can throw, we just get the answer directly. libstdc++-v3/Change