[Patch] Fix variant::operator= on references
Jonathan Wakely
jwakely@redhat.com
Thu Sep 22 10:03:00 GMT 2016
On 22/09/16 01:49 -0700, Tim Shen wrote:
>Done. When writing the initial version, I was trying to save as much
>qualifications as possible (as long as the semantic doesn't change)
>for readability, but that might not be a good idea.
It does change the semantics, as forward<_Tp>(__tp) can find another
function via ADL (see the new test in this patch).
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 12543 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160922/cd1f6dd3/attachment.bin>
More information about the Libstdc++
mailing list