[GSoC] __enable_shared_from_this_helper

Jonathan Wakely jwakely@redhat.com
Sun May 3 23:33:00 GMT 2015


[Sory for any duplicate mails, I'm having connection problems)

On 04/05/15 00:28 +0100, Jonathan Wakely wrote:
>On 03/05/15 19:03 -0400, Fan You wrote:
>>2.
>>int* a = new int(1);
>>shared_ptr<int> a1(a);
>>shared_ptr<int> a2(a);
>
>This is undefined behaviour.

It's possible not everyone agrees:
http://cplusplus.github.io/LWG/lwg-active.html#2179
(but if they don't they're wrong ;-)



More information about the Libstdc++ mailing list