$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Michael Hunley (mhunley_at_[hidden])
Date: 2003-02-11 01:36:41
>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).
To a certain degree auto_ptr<YourClass> supports a custom
de-allocator...overload operator delete in a known case for a specific
object. I haven't actually done it, but it seems not too challenging to
template a base class that does this for you with your custom allocator and
then use it as a mix-in class for whatever class you are creating. Does
that solve your issue or am I missing your point? If so, sorry I came a
little late to this thread.
michael