From: Bruno Martínez (br1_at_[hidden])
Date: 2005-11-16 22:44:08
On Wed, 16 Nov 2005 16:56:00 -0200, Michael Goldshteyn
> I have a class hierarchy which unfortunatelly results in circular
> dependencies not allowed by C++. Is there any simple way to fix this?
> note, I have trivialized this problem for the purpose of illustration.
> 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:
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk