|
Boost : |
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-01-18 18:11:25
On 18/01/2008, Robert Dailey <rcdailey_at_[hidden]> wrote:
> I was wondering it is currently possible to give ptr_vector a custom
> deleter?
>
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-concept
)
~ Scott
-- Sed quis custodiet ipsos custodes?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk