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

2015-08-14 Thread Jonathan Wakely
On 30/07/15 11:00 +0100, Jonathan Wakely wrote: 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. Similar checks in move-assign and swap members, and a better test. Tested powerpc64

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

2015-07-30 Thread Jonathan Wakely
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. commit 8a9db2d69b88c72ca0fd794c1058918069787f83 Author: Jonathan Wakely Date: Thu Jul 30