A new question...
Hi!
A few days ago i asked here about overloading the global "delete" and "new" operators and you helped me a lot.
Now... I managed to overload the new and delete operators but now I want to
call the original ones from within my overloads.
I've seen I can just write :"::operator new[](size)" and the right operator will be called.
But it doesn't seem to work for delete[] (it just calls my delete) and for "new" and "delete" it doesn't even compile.
(BTW I used the "#define new new(__FILE__, __LINE__)" statment)
How can I do this?
thanks:)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement