So you mean I have to have another dummy variable?
I have another question. If f(foo *a) has a dynamic variable with "new". Is the variable deleted after the function operates?
All objects created with
new has to be deleted with
He. Thank you. That helps me a lot!
You could have checked this yourself by making a destructor that prints something to the screen and see if it's get's called at any point in that program ;) .