|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-02-14 05:56:45
dlux42 <dlux_at_[hidden]> wrote:
> And what if you use the deallocator as a template parameter?
>
> + It does not cost extra space
> + Don't need to use an extra reference-counted pointer
> - The interface is not consistent with shared_ptr
>
> How about that? I would be happy to see this advancement in the
> scoped_ptr class.
>
> Anyway: Do you know any smart-pointer class, which supports custom
> deallocator and can transfer ownership? (auto_ptr does not support
> custom deallocator and either smart_ptr or shared_ptr does not support
> release() method).
Both good questions. Do we have an answer?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk