When I read about this, I have these in mind:
void someFunc() { // foo is very likely to get stack allocated scope foo = new SomeClass(); foo.use(); // ~foo is called. }
When I read about this, I have these in mind:
void someFunc() { // foo is very likely to get stack allocated scope foo = new SomeClass(); foo.use(); // ~foo is called. }