id summary reporter owner description type status milestone component version severity resolution keywords cc 944 smart_ptrs: Custom allocators. murrayc Peter Dimov "{{{ I'd like to use the shared_ptr smart pointer, but the underlying types that I am using have their own specific *_alloc() and *_drop() functions instead of using new/delete. If the smart_ptr template classes took an allocator type as a template arg then we would just have to define our own allocators for things like this. By using a default allocator that used new/delete there would be no impact on current code. e.g. template< typename T, typename Tallocator=default_allocator> class shared_ptr {}; Maybe the default_allocator<> is a bit like std::allocator<>, but I'm not sure about that. This would reduce the code for a lot of C-API wrapper projects. }}}" Feature Requests closed smart_ptr None Fixed