Boost logo

Boost Users :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-10-08 10:38:42


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

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