17 Dec
2015
17 Dec
'15
6:20 p.m.
In my code there are objects created, which delete themselves. They can do it in the constructor, or later in some function. This is ugly, and I'm getting some wierd behaviour, probably because of this bad design.
I'm at a loss to understand how an object can possibly delete itself in it's own constructor...? Maybe you were looking for smart pointers to manage object lifetime? John.