M
Mathieu Malaterre
Hello,
I am trying to override the delete operator so that it set 0 to my
object. Is this possible ?
I am used to do:
obj *a = new obj;
....
delete a;
a = 0; //prevent any misuse.
But I am looking for a transparent way to do it.
Thanks,
Mathieu
I am trying to override the delete operator so that it set 0 to my
object. Is this possible ?
I am used to do:
obj *a = new obj;
....
delete a;
a = 0; //prevent any misuse.
But I am looking for a transparent way to do it.
Thanks,
Mathieu