Circular dependency w/ class typedefs

1
2
3
4
5
struct A
{
    typedef /**/ X;
    typedef B::X Y;
};
1
2
3
4
5
struct B
{
    typedef /**/ X;
    typedef A::X Y;
};
Is there a way to solve this circular dependency, or do I just have to use a less-elegant approach?
So there's no way?
Topic archived. No new replies allowed.