F
Fred
Is it legal to invoke my destructor from within an instance function?
For example,
bool MyClass::someFunction() {
SomeOtherClass:someFunction(this);
// No other references to 'this'
// after this point
return true;
}
SomeOtherClass::someFunction(MyClass m) {
delete m;
}
For example,
bool MyClass::someFunction() {
SomeOtherClass:someFunction(this);
// No other references to 'this'
// after this point
return true;
}
SomeOtherClass::someFunction(MyClass m) {
delete m;
}