Hi,
I have two classes, let's call them class A and class B with mutual
dependencies as shown below and where implementation is inside .h (no cpp)
#include "classB.h"
class A
{
};
#include "classA.h"
class B
{
};
So to solve this I am using forward declaration in class B and I had
to mo ve implementation in a .cpp
class A;
class B
{
...
};
IS there another way to solve this and to keep implementation only in .h ?