Jump to content
  • Advertisement
Sign in to follow this  
Idov

A new question...

This topic is 3762 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!