Boost logo

Boost :

From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2007-11-18 07:59:43


On Nov 18, 2007 11:09 AM, Corrado Zoccolo <czoccolo_at_[hidden]> wrote:
> Hi again,
>
> I checked, and the code I posted before (here shown with small fixes to the
> syntax) doesn't work as I wanted, due to the two phase lookup that always
> finds global operator new instead of a possibly redefined one:
>

Maybe you can use SFINAE to detect if a class implements operator new.
I'm not sure if
it can be done for operator new, it certainly can be done for other
member functions.

--
gpd

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