Boost C++ Libraries: Ticket #2179: add support for weak_ptr https://svn.boost.org/trac10/ticket/2179 <p> Today shared_ptr works very well, but it makes it difficult for the C++ application to retain control over the lifetime of its objects. Variables in the interpreter which are hard to clear can prevent an object from being deleting. </p> <p> weak_ptr support would be the ideal solution. A application could hand out only weak_ptrs to Python. The object could then be deleted as normal. </p> <p> Attempting to use a weak_ptr in Python if the object has been released should throw. Python code which knows its objects might be deleted out from under it can catch this exception. </p> <p> See thread w/ Dave Abrahams titled "application exit and shared_ptr" in C++-sig. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2179 Trac 1.4.3 Dave Abrahams Sat, 28 Nov 2009 18:38:29 GMT <link>https://svn.boost.org/trac10/ticket/2179#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2179#comment:1</guid> <description> <p> I'd like to have a (currently-failing) test case that demonstrates what you want to work. Without that, I can't be sure you're getting what you really want. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 19 Apr 2013 06:03:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2179#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2179#comment:2</guid> <description> <p> See <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/3673"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/3673</a> for example </p> </description> <category>Ticket</category> </item> </channel> </rss>