
19 Jan
2008
19 Jan
'08
2:32 p.m.
It looks like you might just have to overload delete_clone in a way that lets it be found through ADL (
http://boost.org/libs/ptr_container/doc/reference.html#the-clonable-concept ) or, if you need different deallocators for the same type, make a Clone Allocator (
http://boost.org/libs/ptr_container/doc/reference.html#the-clone-allocator-c... )
Thanks, I'll look into that and see if it works. However, I like the method I proposed in my first email better. Is there a reason why it could not be done this way? It seems more intuitive and simple. In addition, you wouldn't need to rely on ADL.