I have a class I will call Outer declared in a header Outer.h. There is a class declared inside Outer that I will call Inner.
In another header file class declaration I would like to declare
Outer::Inner *myInner;
I would like to forward declare Outer and Inner rather than including "Outer.h" and potentially getting into "header file loop hell." I have tried various combinations of
class Outer;
class Inner;
class Outer::Inner;
to no avail. Is it possible to do what I am trying to do, or must I move Inner out of Outer or some similar approach?
MSVS 2010 if it matters, but I need to end up with portable code.