[patch] libstdc++/66078 __make_move_if_noexcept_iterator should return a constant iterator or a move iterator

Jonathan Wakely jwakely@redhat.com
Wed May 20 17:11:00 GMT 2015


As discussed in the thread starting at
https://gcc.gnu.org/ml/libstdc++/2014-05/msg00027.html when
__make_move_if_noexcept_iterator decides not to move it returns a
mutable iterator, which can then result in the wrong constructor being
used. This ensures that when not moving we will get a pointer-to-const
which will result in the copy constructor being called.

Tested powerpc64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 6677 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150520/3520743e/attachment.bin>


More information about the Libstdc++ mailing list