[patch] Detect non-member operator&() overloads in std::experimental::optional

Jonathan Wakely jwakely@redhat.com
Wed Nov 12 00:34:00 GMT 2014


On 12/11/14 00:16 +0000, Jonathan Wakely wrote:
>The _Has_addressof trait only detected an overloaded operator&() as a
>member function, this also checks for a non-member.

Also clean up the tests by removing some unused headers.

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


More information about the Libstdc++ mailing list