Boost logo

Boost :

From: Emil Dotchevski (emil_at_[hidden])
Date: 2007-10-19 00:56:05


> > I don't have a particular reason for not using intrusive_ptr.
> > I also don't have a particular reason not to use shared_ptr.
>
> shared_ptr requires additional allocations.

It requires one additional allocation.

Compare this to the potentially many memory allocations required by
the std::map used in the pointee.

> Since in
> this case the optimization is very easy to implement, it should probably
> be done.

Probably so.

Emil Dotchevski


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk