Monday, December 1, 2008

Inheritance 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 removing the forward declaration from the parent class header.

No comments: