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:01:38


> On Wed, Oct 24, 2012 at 8:42 AM, Rutger ter Borg <rutger_at_[hidden]>
>
> That, or what about defining operators new and delete for those types?
>
The problem is that operator delete only gets a void *, so there's the
risk of it being called incorrectly. Moreover, operator delete has to be a
member of the type, and I don't control the type, it comes from libXML2,
as I said in my first post.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk