overloading the new operator

Status
Not open for further replies.

kuya

Ars Scholae Palatinae
881
hi all,
i was readin an article over on flipcode
http://www.flipcode.com/tutorials/tut_memleak.shtml
on overloading new and delete to help detect memory leaks. i'm basically just trying to get the code on their page to work on my solaris account, but g++ constantly complains with

test.cpp:10: function `void * operator new(unsigned int, const char *, int)' is initialized like a variable

on this line
void *operator new(unsigned int size, const char *file, int line)

any ideas to get this a'runnin?
 
Status
Not open for further replies.