[PATCH] 77864 Fix noexcept conditions for map/set default constructors

Jonathan Wakely jwakely@redhat.com
Wed Oct 5 12:13:00 GMT 2016

On 05/10/16 14:10 +0200, Marc Glisse wrote:
>On Wed, 5 Oct 2016, Jonathan Wakely wrote:
>>I added conditional noexcept to maps and sets, but forgot to account
>>for the comparison function, which could throw when constructed.
>IMO you are fighting a losing battle. We should implement 
>noexcept(auto) (possibly with some private __noexcept_auto__ spelling) 
>and just use that in most places where we want a conditional noexcept.

That would be nice, but beyond my ability :-)

So until then we can either remove the exception specs entirely, or
make them correct.

More information about the Gcc-patches mailing list