Can we overload new and delete operators in C++?

 
 
Posts: 13
Joined: 2007-02-26
Points: 0
User is offline
Can we overload new and delete operators in C++?

Does anyone have an idea if we can overload new and delete operators in C++?
I think we cannot but can someone throw some light on this.
Varsha


Posts: 18
Joined: 2007-02-25
Points: 0
User is offline
Yes of course :) You can

Yes of course :) You can overload new and delete like any other operator. Have a look at this link for more info:
http://www.eng.cam.ac.uk/help/tpl/languages/C++/Thinking_in_C++/tic0137....
Cheers
Mahen