[v3 patch] Remove __gnu_cxx::__alloc_traits::_S_nothrow_swap()
Jonathan Wakely
jwakely@redhat.com
Mon Jul 13 17:16:00 GMT 2015
As I suggested recently, this removes the _S_nothrow_swap() function
because it's redundant: allocators are not allowed to throw exceptions
when swapped, so we can assume they don't.
So now exception specifications for swapping containers don't depend
on allocators.
This also adds a _GLIBCXX_NOEXCEPT_IF macro for helping to define
conditional noexcept guarantees.
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 54961 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150713/15a2cddd/attachment.bin>
More information about the Libstdc++
mailing list