I've been working on this question "Using automatic variables in C++ Constructor" and I found that besides my primary answer,- that referred just to the possibly compilation related problems -, I immediately spotted the OP's got some semantical concept completely wrong.
Should I?
- just close vote the question, because some appropriate answer by means of a [duplicate] will fix the actually stated problem
- or/and focus on the sematical flaw introduced by the question, and give an appropriate answer to fix this (foreseeing the misconceptions)
There's also a little debate, regarding this particular answer for the question mentioned above.
new
. There's no concise/definite answer for this, unless more requirements are clarified. I'd prefer the simple variant (without involving homebrew memory management) for almost every case.