
18 Nov
2007
18 Nov
'07
12:59 p.m.
On Nov 18, 2007 11:09 AM, Corrado Zoccolo <czoccolo@gmail.com> 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