8 Oct
2005
8 Oct
'05
3:38 p.m.
Piyush Kapadia wrote:
Sorry for my ignorance, but isn't there any cleaner Smart Pointer implementation where we don't have to use new every time initiating object and smart pointer becomes part of the class rather that separate implementation like following -
shared_ptr sp(new int(5));
http://www.boost.org/libs/smart_ptr/intrusive_ptr.html -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org