Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-04-18 09:47:24

From: "Carl Daniel" <cpdaniel_at_[hidden]>
> "David B. Held" <dheld_at_[hidden]> wrote in message
> news:a9limo$9jc$
> > I have uploaded
> > which is an implementation of an intrusive reference-counted
> > smart pointer that was shamelessly copied from boost::shared_ptr.
> One thing I'd change, although this does come with a cost, is to make the
> objects self-deleting. [...]

IMO, there is no "standard" intrusive pointer. The variations are (at

* type of count: public variable, accessor functions, base class;
* name of count/accessors (addref, AddRef, addRef, attach);
* initial value of the reference count (zero or one.)
* delete in the pointer or self-delete in release.

Boost list run by bdawes at, gregod at, cpdaniel at, john at