Почему это не компилится?
---begin(A.cpp)---
#include "A.h"
---end(A.cpp)---
---begin(A.h)---
#ifndef __A_H__
#define __A_H__
#include "B.h"
class B;
class A
{
B b;
};
#endif //__A_H__
---end(A.h)---
---begin(B.cpp)---
#include "B.h"
---end(B.cpp)---
---begin(B.h)---
#ifndef __B_H__
#define __B_H__
#include "A.h"
class A;
class B
{
A a;
};
#endif //__B_H__
---end(B.h)---