How to: C++: Delete this?
How to: C++: Delete this?
C++: Delete this?
Is it allowed to delete this; if the delete-statement is the last statement that will be executed on that instance of the class? Of course I’m sure that this class-instance is newly-created.
I’m thinking of something like this:
void doStuff() { // in the controller, this object is the "working module" // now, if we want to change it, like this: controller->setWorkingModule(new…
View On WordPress















