lets say we have a valid class with full implementation, X.
can this class be declared as forward in Y header file:
Code:class X; class Y{ X* m_X; }
but still be used as regular in the cpp file?
visual studio prevents me from doing it , I wonder if the standard also says so.Code:#include "Y.h" #incldue "X.h" T Y::function(){ m_X->doSomething(); }