Boost logo

Boost Users :

From: dlux42 dlux_at_[hidden])
Date: 2003-02-11 05:04:18


> 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.

Not exactly: I cannot subclass the object which I want to use
(DOMWriter from the Xerces lib), because it has hidden constructors.

So the question still remains remains about theauto_ptr custom
deallocator...


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net