Is it possible to delete an object from inside an object?
I know this is extremely ugly. I am just curious.
Something like this:
This is probably all very wrong..I just wrote this code to illustrate what I mean.Code:class Test {
public:
void reload();
};
void Test::reload() {
Test *helper = this;
delete this;
helper = new Test();
}
But is it some way to do something similar?

