Including headers
Well I am having problems with definition two classes in separate files but still being able to use each other for example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
// a.h /////////////////////////////
#include "b.h"
class A {
B* b;
};
// b.h /////////////////////////////
#include "a.h"
class B {
A* foo();
};
|
Although this isn't possible since it creates an endless include.
Topic archived. No new replies allowed.