Boost logo

Boost :

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
<mgoldshteyn_at_[hidden]> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk