From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-07-28 08:06:37


Dave wrote:
> Hello all,
>
> I assume that the reference count object pointed to by shared_ptr
> objects is on the heap. Is there a way that I can specify a custom
> allocator for shared_ptr to use for this purpose?

No, sorry. But if you grep for BOOST_SP_USE_STD_ALLOCATOR, you'll see where
to patch your local copy - it should be easy.

Out of curiosity, why do you need to use a custom allocator? To find leaks,
for performance reasons, or because of tight memory requirements (embedded
systems)?