K
Kent
Hi!
I think i know whats the problem but not how to solve it.
I have two classes, named A and B.
The A class has a list<B*>
And the B class has an pure virtual method declared as: void methodname(A*
Ap)
When compiling this, the compiler complains that the A class isn´t compiled
when trying to compile the B class. They are dependent on eachother, and can
not compile.
How can i solve this? I have looked through my two C++ books as good as i
could and googled for the answer. Any help would be greatly appreciated!
Btw, sorry for any typing or grammatical errors, english isn´t my native
language.
Best regards and Merry Christmas, Kent
I think i know whats the problem but not how to solve it.
I have two classes, named A and B.
The A class has a list<B*>
And the B class has an pure virtual method declared as: void methodname(A*
Ap)
When compiling this, the compiler complains that the A class isn´t compiled
when trying to compile the B class. They are dependent on eachother, and can
not compile.
How can i solve this? I have looked through my two C++ books as good as i
could and googled for the answer. Any help would be greatly appreciated!
Btw, sorry for any typing or grammatical errors, english isn´t my native
language.
Best regards and Merry Christmas, Kent