I was just reading this article and wanted SO folks advice:
Q: Should delete this; be called from within a member method?
delete this;
Some threading libraries use it when implementing an auto destroy on thread termination.
void Thread::threadFunc() { doRun(); if(this->destroyOnExit == true) delete this; }