18 Dec
2002
18 Dec
'02
12:50 p.m.
From: "Stephen Crowley"
On Tue, Dec 17, 2002 at 07:53:52PM +0200, Peter Dimov wrote:
From: "Stephen Crowley"
[...] 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