Boost logo

Boost Users :

Subject: [Boost-users] [statechart] split different orthogonal regions over different translation units
From: Manuel Jung (gzahl_at_[hidden])
Date: 2008-09-10 06:17:48


Hey,

Im trying to split the orthogonal regions over differnent translation units,
but it doesn't compile. The compiler complains that the type is incomplete,
which i try to put on a different translation unit.
What i do is:

Forward declare the orthogonal region and define than the outermost
state "Active" like this:

struct StateInDifferentTransUnit;
struct Active;
struct Start : sc::asynchronous_state_machine< Start, Active >{
...
}

struct Active : sc::state< Active, Start, mpl::list< State1, State2,
StateInDifferentTransUnit > >{
...
}

Is the split in different translationunits not possible with orthogonal
regions or what could be my problem?

Kind Regards
Manuel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net