[Boost-bugs] [Boost C++ Libraries] #1696: Add support for shared_from_this() in constructors.

Subject: [Boost-bugs] [Boost C++ Libraries] #1696: Add support for shared_from_this() in constructors.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-03-18 17:16:17


#1696: Add support for shared_from_this() in constructors.
-------------------------------------+--------------------------------------
 Reporter: fmhess | Owner: pdimov
     Type: Patches | Status: new
Milestone: To Be Determined | Component: smart_ptr
  Version: Boost Development Trunk | Severity: Not Applicable
 Keywords: |
-------------------------------------+--------------------------------------
 I've added support to shared_ptr/enable_shared_from_this for calling
 shared_from_this() from a constructor, that is, before the object has
 actually been given to a shared_ptr. The attached proof-of-concept patch
 against svn trunk now successfully passes the shared_ptr test programs
 under Linux with g++ 4.1.2 (except the move tests which didn't compile).
 I'm willing to clean it up a bit more if the changes are deemed
 reasonable, especially the part where I made the shared_count member of
 shared_ptr public.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1696>
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:57 UTC