Original Post
I am trying to find a way to get some information to operator new without having to break the C++ model. Essentially: I want to be able to pass file name, line number, and other info to new in my memory manager, so when I find leaks I have more info to debug. I have looked at Paul Nettle's code.. borrowed some ideas from it. However, I really don't like the way it does this. Is there any way to do this without breaking C++ model so that I can just use x = new foo; instead of x = new (whatever) foo; I don't like that (whatever) stuff. Thanks