Sign in to follow this  

A new question...

Recommended Posts

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:)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this