This code fails to compile:
class B;
class A{
typedef int AThing;
typedef B::BThing BThing;
};
class B{
typedef int BThing;
typedef A::Athing AThing;
};
Because A
needs a typedef
from B
and B
needs one from A
.
What is the typical method for using typedefs that have circular dependancies?