Quote Originally Posted by Elysia View Post
Note that this won't work if you create objects, and not pointers, because the constructor and destructor must be called, but since you only have a forward declaration, the compiler cannot see your full class definition and can't call the constructor.
You can't even compile it if you aren't simply forward declaring a pointer (or reference?) to the class.