Original Post
I have two classes (each with they''re own .h file and .cpp file. Each header file has a unique
#ifndef HEADERFILENAME_H
#define HEADERFILENAME_H
... class definition ...
#endif
..So each header can be included multiple times throughout my program. My problem is I have two classes that reference each other and the compiler doesn''t like this.
Example:
class A
{
B b;
}
class B
{
A a;
}
Anyone know a way to make this ok with the compiler or is it impossible to do this?
Thanks guys