471,070 Members | 1,346 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,070 software developers and data experts.

Q: Overload operator new/delete


I am overloading the global operator new and delete to track allocations
and find leaks, along with file name and line numbers. This is how I
overloaded operator new:

#define new new (__FILE__, __LINE__)

Now the same will not work with operator delete. Is there a way to have
the file name and line number passed to operator delete?


(replace y with x if you want to reply by e-mail)
Jul 19 '05 #1
0 3073

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Chris E. Yoon | last post: by
1 post views Thread by Piotre Ugrumov | last post: by
1 post views Thread by Nimmi Srivastav | last post: by
7 posts views Thread by Sean | last post: by
2 posts views Thread by Shark | last post: by
6 posts views Thread by Lighter | last post: by
5 posts views Thread by richard.parker | last post: by
6 posts views Thread by Jonas Huckestein | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.