This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [GSoC] __enable_shared_from_this_helper


[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 ;-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]