Converting to a Forward-Reference Class Type
The document is archived and information here might be outdated

Converting to a Forward-Reference Class Type

A class that has been declared but not yet defined (a forward reference) can be used in a pointer cast. In this case, the compiler returns a pointer to the original object, not to a subobject as it might if the class's relationships were known.

See Also

Legal Conversions

Show:
© 2016 Microsoft