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.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"