so, the fix is to add the pointer to B to the function signature, like void func(A* a, B* b), right?
B
void func(A* a, B* b)