[patch] libstdc++/61143 make unordered containers usable after move

François Dumont frs.dumont@gmail.com
Tue May 20 20:37:00 GMT 2014


On 20/05/2014 21:36, Jonathan Wakely wrote:
>
> OK. My sketch above avoided calling _M_moved_from() more than once per
> object, but the compiler should be able to optimise your version to
> avoid multiple calls anyway.
>
>> Here is the new patch limited to what I really want to commit this time.
>
> Great. Please commit to trunk and the 4.9 branch - thanks!
>
>
     As I have integrated your remarks I won't have time to commit this 
evening. So I submit this update here, just in case you want to see it 
again and I will commit tomorrow.

     I finally use a simplified version of your sketch in the swap 
implementation.

François

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hashtable.patch
Type: text/x-patch
Size: 14250 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20140520/8a2ebb1a/attachment.bin>


More information about the Libstdc++ mailing list