Is it possible to forward-declare a class declared in another forward-declared class?
Basically, I have something like this
//A.h
class A
{
...
struct B
{
...
};
};
and now I want to declare another class like this
//Q.h
class A;
struct A::B;
class Q
{
A::B* Foo();
};
No, it cannot be done. To access the members of
Ait has to be defined, regardless of whether the member is a type, data or function.