Boost logo

Boost :

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.

http://pastebin.com/sBdS1wvJ

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.


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