Boost logo

Boost :

Subject: Re: [boost] Is there a way to specialize how a smart_ptr<T> releases the T?
From: david.hagood_at_[hidden]
Date: 2012-10-24 13:00:18

> On 2012-10-24 13:21, David Hagood wrote:
>> I guess what I can do to avoid the risk would be to derive from
>> shared_ptr and provide the destructor in my ctor.
> Maybe you might be interested in using an intrusive_ptr<> instead, then?
> Regards,
> Rutger
As I said in my post: I don't control the object type that is being
managed - that is fixed by libXML2. I am only trying to keep the object
from being destroyed at the wrong time. Since there is no internal
reference count I cannot use an intrusive_ptr, as I said in my first post.

Boost list run by bdawes at, gregod at, cpdaniel at, john at