J
junw2000
In the example below:
------------------------------
f1.h
#include "f2.h"
class A1{
void g();
}
class A2{}
--------------------------------
f1.cpp
#include "f1.h"
void A1::g(){
B1 b;
B1::h();
}
---------------------------------
f2.h
#include "f1.h"
class B1{
static void h();
}
--------------------------------
f2.cpp
#include "f2.h"
void B1::h(){
A2 a;
}
How to solve this problem other than merging f1.h and f2.h?
Thanks.
Jack
------------------------------
f1.h
#include "f2.h"
class A1{
void g();
}
class A2{}
--------------------------------
f1.cpp
#include "f1.h"
void A1::g(){
B1 b;
B1::h();
}
---------------------------------
f2.h
#include "f1.h"
class B1{
static void h();
}
--------------------------------
f2.cpp
#include "f2.h"
void B1::h(){
A2 a;
}
How to solve this problem other than merging f1.h and f2.h?
Thanks.
Jack