struct B;
struct A {
void funcA(B &b) {
b.funcB(*this); // Here where is an error: Member access into incomplete type 'B'
}
};
struct B {
A a;
void funcB(A a1) {
}
};
As I understand, I need to somehow define B::funcB, because when I swap function body, the error occurs in the A struct.