$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [MSM] Compile-time error using SubMachines and events that carries some data
From: Fernando Pelliccioni (fpelliccioni_at_[hidden])
Date: 2013-05-23 14:05:59
Hi,
I have a Main State Machine (state_machine_) and two SubMachines.
I want to start the first SubMachine and when it finished I want to start
the second SubMachine.
Here is the code.
I have a compile-time error on some States of the second SubMachine.
error: no member named 'element' in 'exit_introduction'
std::cout << "event.element(): " << event.element() <<
std::endl;
~~~~~ ^
This is on state "StaringGame" and according the Transition Table of
GameSM, only the event "character_selected" is used.
I don't know why is trying to use the event "exit_introduction".
Is this a bug of MSM?
Am I doing something wrong?
Thanks and regards,
Fernando Pelliccioni.