|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-12-18 07:50:58
From: "Stephen Crowley" <stephenc_at_[hidden]>
> On Tue, Dec 17, 2002 at 07:53:52PM +0200, Peter Dimov wrote:
> > From: "Stephen Crowley" <stephenc_at_[hidden]>
> > [...]
> > > I have my own implementation called smart_ptr which is based on
smart_ptr
> > > and weak_ptr, which is used in pretty much the same way.
> > >
> > > public MyClass: public smart_class<MyClass>
> > > {
> > > ...
> > > }
> >
> > The next Boost release will (likely) contain a similar helper, see:
> >
> >
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/libs/s
> > mart_ptr/enable_shared_from_this.html?rev=1.1
>
> Cool, this is exactly what I was looking for, how long has it been around?
It's a relatively recent addition. You can see the revision history at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost/boost/boost/enable_shar
ed_from_this.hpp
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