[C++-sig] alternative smart pointer (intrusive_ptr) example

David Abrahams dave at boostpro.com
Sat Jul 26 19:55:59 CEST 2008

on Thu Jul 24 2008, Jeff Webb <jeff.webb-AT-nta-inc.net> wrote:

> The boost::python library provides excellent support for wrapping C++
> objects managed by boost::shared_ptr reference counting smart
> pointers.  I am attempting to achieve similar functionality with a
> little less memory overhead by embedding the reference count in the
> managed object and using boost::intrusive_ptr instead.

Why?  Have you profiled the memory use of shared_ptr and found it to be
a problem?

Dave Abrahams
BoostPro Computing

More information about the Cplusplus-sig mailing list