[Boost-bugs] [Boost C++ Libraries] #2179: add support for weak_ptr

Subject: [Boost-bugs] [Boost C++ Libraries] #2179: add support for weak_ptr
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-09 02:44:29


#2179: add support for weak_ptr
--------------------------------+-------------------------------------------
 Reporter: pwinston_at_[hidden] | Owner: dave
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: Python
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 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.

 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.

 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.

 See thread w/ Dave Abrahams titled "application exit and shared_ptr" in
 C++-sig.

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2179>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC