[PATCH] Make std::enable_shared_from_this cope with ambiguity

Jonathan Wakely jwakely@redhat.com
Thu Oct 20 10:10:00 GMT 2016

On 19/10/16 21:13 +0100, Jonathan Wakely wrote:
> The standard says we have to enable shared_from_this for types with
> an accessible and unambiguous std::enable_shared_from_this base
> class, and we should be able to do that even if the class also has
> an experimental::enable_shared_from_this base class. Now we can.

This adds some more checks for that case.

Tested x86_64-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2614 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161020/24f8c760/attachment.bin>

More information about the Gcc-patches mailing list