28 Sep
2007
28 Sep
'07
6:38 a.m.
On Thu, Sep 27, 2007 at 08:21:00PM -0700, Cory Nelson wrote:
It would be useful if shared_ptr and family provided a way to give a custom allocator. For instance, to replace the quick allocator with a lock-free one.
Eh, indeed. That's why I have switched to intrusive_ptr (which might not be possible in your case). If you read the FAQ about shared_ptr, you will see that configurability has NOT been the goal and you will be "forwarded" to Alexandrescu's MC++D for policy-based smart pointer design.