How to do it...
To declare a scoped pointer, we simply use the following syntax:
TScopedPointer<AWarrior> warrior(this );
This declares a scoped pointer referencing an object of the type declared within the angle brackets: < AWarrior >.
To declare a scoped pointer, we simply use the following syntax:
TScopedPointer<AWarrior> warrior(this );
This declares a scoped pointer referencing an object of the type declared within the angle brackets: < AWarrior >.