Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::enable_shared_from_this why?
From: Igor R (boost.lists_at_[hidden])
Date: 2009-01-15 05:45:43


>
> Hello, reading the documentation for enable_shared_from_this,
> I can't understand why this kind of base class is needed.

Imagine you have to acquire shared_ptr to the object from within its member
function. How would you do this without shared_from_this()?



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net