Boost Ref Counting & Smart Pointers

Does Boost Library internally does Reference counting for most of its internal objects ? Does it also use it's shared_ptr kind of Smart pointer implementation internally ? 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));

Piyush Kapadia wrote:
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

At 10:08 PM -0400 10/7/05, Piyush Kapadia wrote:
How about (untested code, but I have something pretty similar in my code):
template <class T>
boost::shared_ptr<T> New () { return boost::shared_ptr<T> ( new T ); }
template
participants (4)
-
Marshall Clow
-
Piyush Kapadia
-
Rene Rivera
-
Simon Buchan