
On Wed, 16 Nov 2005 16:56:00 -0200, Michael Goldshteyn <mgoldshteyn@comcast.net> wrote:
Description:
I have a class hierarchy which unfortunatelly results in circular dependencies not allowed by C++. Is there any simple way to fix this? Please note, I have trivialized this problem for the purpose of illustration. The actual code that needs this is far more complex. I am quite perplexed, please help:
Here is the code made as simple as I can:
[snip] I think you can forward declare Action ate the top and define it later. You end up with vector<Action> in arguments. I know that using standard classes with incomplete types is not guaranteed to work, but I'm not sure if mentioning it as a parameter is a 'use'. Maybe this thread should be moved to c.l.c++.moderated. Bruno