delete this;
delete this
class A {public: void Delete() { delete this; } };//...A* a = new A();a->Delete();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)