Boost C++ Libraries: Ticket #2126: make_shared doesn't work with enable_shared_from_this https://svn.boost.org/trac10/ticket/2126 <p> make_shared&lt;T&gt;() doesn't seem to initialise the enable_shared_from_this&lt;T&gt; internal weak pointer, causing an assert upon calling shared_from_this() for any instance initialised using make_shared instead of new. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2126 Trac 1.4.3 Marshall Clow Sat, 26 Jul 2008 03:40:55 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2126#comment:1 https://svn.boost.org/trac10/ticket/2126#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Peter Dimov</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">smart_ptr</span> </li> </ul> Ticket Peter Dimov Thu, 21 Aug 2008 14:54:25 GMT status, version, milestone changed https://svn.boost.org/trac10/ticket/2126#comment:2 https://svn.boost.org/trac10/ticket/2126#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost Release Branch</span> → <span class="trac-field-new">Boost 1.36.0</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost 1.37.0</span> </li> </ul> Ticket Andrey.Semashev@… Thu, 25 Sep 2008 18:58:14 GMT <link>https://svn.boost.org/trac10/ticket/2126#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2126#comment:3</guid> <description> <p> Is this ticket still open? The trunk version seems to fix the problem in my code. </p> </description> <category>Ticket</category> </item> <item> <author>Andrey.Semashev@…</author> <pubDate>Thu, 16 Oct 2008 17:50:04 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/2126 https://svn.boost.org/trac10/ticket/2126 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">make_shared.hpp.diff</span> </li> </ul> <p> The proposed fix </p> Ticket anonymous Sun, 11 Jan 2009 15:27:17 GMT <link>https://svn.boost.org/trac10/ticket/2126#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2126#comment:4</guid> <description> <p> Looks like 1.37 still have the bug, and the current trunk as well. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 12 Jan 2009 11:49:24 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/2126#comment:5 https://svn.boost.org/trac10/ticket/2126#comment:5 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.37.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket Peter Dimov Sat, 28 Feb 2009 17:13:28 GMT milestone changed https://svn.boost.org/trac10/ticket/2126#comment:6 https://svn.boost.org/trac10/ticket/2126#comment:6 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.39.0</span> </li> </ul> Ticket Peter Dimov Tue, 03 Mar 2009 19:25:29 GMT <link>https://svn.boost.org/trac10/ticket/2126#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2126#comment:7</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51581" title="Fix enable_shared_from_this-related tickets in trunk. Refs #2126. Refs ...">[51581]</a>) Fix enable_shared_from_this-related tickets in trunk. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2126" title="#2126: Bugs: make_shared doesn't work with enable_shared_from_this (closed: fixed)">#2126</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2584" title="#2584: Bugs: boost::enable_shared_from_this + boost.python library (closed: fixed)">#2584</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Thu, 05 Mar 2009 23:06:20 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2126#comment:8 https://svn.boost.org/trac10/ticket/2126#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51632" title="Merge [51581] to release. Fixes #2126. Fixes #2584.">[51632]</a>) Merge <a class="changeset" href="https://svn.boost.org/trac10/changeset/51581" title="Fix enable_shared_from_this-related tickets in trunk. Refs #2126. Refs ...">[51581]</a> to release. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2126" title="#2126: Bugs: make_shared doesn't work with enable_shared_from_this (closed: fixed)">#2126</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2584" title="#2584: Bugs: boost::enable_shared_from_this + boost.python library (closed: fixed)">#2584</a>. </p> Ticket