I'm porting to a recent MSVS version the code that somehow compiled in MSVC++ 6:
class CTreeNode;
typedef std::deque<CTreeNode> TTreeNodes;
class CTreeNode {
// ...
TTreeNodes succNodes;
// ...
};
However, in recent MSVC++ this code doesn't compile with error C2027: use of undefined type 'CTreeNode'
at the line containing TTreeNodes succNodes;
.
Any ideas how to change the code least intrusively so to make it to compile?