Revision as of 04:39, 26 July 2012 by
How to create an instance of a T–class into heap with a new operator
From Nokia Developer Wiki
Created:(20 Mar 2007)
Last edited:(26 Jul 2012)
It is possible to create an instance of a T class with a new operator, but these precautions must be taken:
- Instances of T classes can be safely placed into the cleanup stack, assuming that they do not contain any pointers or references to external objects. The cleanup stack handles the cleanup simply by calling User::Free().