[Bug libstdc++/36949] [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count
jwakely dot gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jul 28 20:28:00 GMT 2008
------- Comment #3 from jwakely dot gcc at gmail dot com 2008-07-28 20:27 -------
(In reply to comment #2)
> Jonathan, can you have a look? If you can confirm the issue, is it just matter
> of adding a call to __enable_shared_from_this_helper(_M_refcount, _M_ptr,
> _M_ptr) to __shared_ptr(_Sp_make_shared_tag, _Alloc, _Args&&...) ??
Yes, that's the right fix.
> PS: I'm going to adjust some arguments around from _Alloc to const _Alloc&...
Cool.
Thanks for catching this, Daniel.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36949
More information about the Gcc-bugs
mailing list