How to create an instance of a T–class into heap with a new operator
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 CleanupStack, assuming that they do not contain any pointers or references to external objects. CleanupStack handles the cleanup simply by calling User::Free().
* Member variables are not zeroed automatically on construction. Only CBase’s new operator zeroes members.
Tuesday, July 01, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment