Index:
[thread]
[date]
[subject]
[author]
From: Garrett Mitchener <wgm2@duke.edu>
To :
Date: 07 Mar 1999 23:00:14 -0500
Re: circular include problem
Objects can't include each other in a loop like you describe:
class Foo
{
...
Bar myBar;
...
};
class Bar
{
...
Foo myFoo;
...
};
This is simply impossible in the C++ object model. They may however
include pointers or references to each other:
class Foo
{
...
Bar & myBar;
...
};
class Bar
{
...
Foo * myFoo;
...
};
I can't see you source code so I can't address your problem directly.
Hope this helps.
-- Garrett :-)
Index:
[thread]
[date]
[subject]
[author]