Boost logo

Boost Users :

Subject: Re: [Boost-users] [statechart] Is it possible to have nested (sub)states in an asynchronous state machine?
From: Igor R (boost.lists_at_[hidden])
Date: 2011-06-09 09:28:31


> Upon your request, I wrote a small but complete program that demonstrates
> the issue. This program consists of 5 source code files:
>
> 1) main.cpp
> 2) StateMachine.hpp
> 3) StateMachine.cpp
> 4) SuperState.hpp
> 5) SubState.hpp

You've got a compiler error, not a linker one, right? If so, why do
you need 2 translation units and 5 files to reproduce it?
I belive, you can reproduce it in one single file, which we could just
copy&paste into an empty file, and try to compile.
It should go like this:

// states definition...
// machine definition...
int main()
{
  // machine instantiation
}


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