[v3 patch] Fix self-assignment in std::experimental::any

Jonathan Wakely jwakely@redhat.com
Thu Jul 30 10:00:00 GMT 2015


When I fixed any's copying of non-trivial types I broke the
self-assignment case. This adds an explicit check for it.

Thanks to Axel Menzel for noticing the bug.

Tested ppc64le-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2669 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150730/3037f93a/attachment.bin>


More information about the Libstdc++ mailing list