J
jimmy
Hi,
I have circular dependancies between a pair of classes; Chicken and
Egg. I changed it to this;
_Chicken.h_
Class Egg;
_Egg.h_
#include "Chicken.h"
This worked fine until I tried to move some functions from Chicken.cpp
to Chicken.h for inlining. The problem is that Chicken.h doesn't have
the Egg's complete interface, only the Class declaration.
Is there a solution for this? Is it possible to forward declare the
functions I need?
-Jimmy
I have circular dependancies between a pair of classes; Chicken and
Egg. I changed it to this;
_Chicken.h_
Class Egg;
_Egg.h_
#include "Chicken.h"
This worked fine until I tried to move some functions from Chicken.cpp
to Chicken.h for inlining. The problem is that Chicken.h doesn't have
the Egg's complete interface, only the Class declaration.
Is there a solution for this? Is it possible to forward declare the
functions I need?
-Jimmy