I have a following problem:
I have two classes, class no 2 includes an array of objects class no 2 type. Furthermore i need do write a function of class no 2 which would be a friend to class no 1. Something like this:
class1.h :
class Class1{
...
friend void Class2::foo();
}
class2.h:
%include "class1.h"
class Class2{
...
Class1 * array[10];
void foo()
}
The problem is, that in definition of class1, the program dosent recognize yet class2. I cant include class2.h in class1.h, because I would create recoursive inclusion. Any ideas?