consider these c++ fragments:
foo.h:
class foo
{
bar myobj;
};
bar.h:
class bar
{
foo *yourobj;
};
other file:
#include "foo.h" //because foo.h is included first bar will not be defined in foo.h
#include "bar.h"
foo container;
bar blah;
I know I didn't bother to write constructors and all that but you get the idea. Anyone know a way to remedy this situation?