
28 Jul
2005
28 Jul
'05
1:06 p.m.
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)?