• Advertisement
Sign in to follow this  

A new question...

This topic is 3640 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Sign in to follow this  

  • Advertisement