Original Post
In the following situation there are mutual references.
The compiler tells me:
error C2027: use of undefined type 'CTest'
If TT was in global scope, my problem would be solved. But what if this condition can't be realized?
How would you handle that?
[edited by - xropi on November 4, 2002 6:48:28 AM]
class CTest;
class CSmall {
CTest::TT m_x: // error reported here
};
class CTest {
typedef int TT; // or any other type
vector<CSmall> m_xx;
};