In this case, you would need to move the implementation of MY_STRUCT::MyMethod
outside the header file, and put it somewhere else. That way you can include Definitions.h
without already having CMyClass
declared.
So your Definitions.h
would change to:
struct MY_STRUCT{
void MyMethod();
};
and then elsewhere:
void MY_STRUCT::MyMethod()
{
int result = CMyClass::StaticMethod();
}