Thursday, April 10, 2008

Forward Declaration problem

When you made a class child who is inherit from class parent and if parent class has some forward declaration then you received a “Compiler Error C2512 - missing type specifier”.

The solution is remove the forward declaration from the parent class header.

No comments: