Diciamo che il problema iniziale è risolto, ma si è aperta la strada degli smart pointer, mai sentiti prima.
Quindi ho sfruttato la disussione già aperta per chiedere chiarimenti a riguardo.
Ok, comunque è sempre meglio aprire una discussione dedicata piuttosto che continuare su una già esistente, altrimenti chi legge fa solo confusione.
This code and information is provided "as is" without warranty of any kind, either expressed
or implied, including but not limited to the implied warranties of merchantability and/or
fitness for a particular purpose.