
24 Oct
2012
24 Oct
'12
5 p.m.
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.