
9 May
2011
9 May
'11
5:18 p.m.
Christophe, One problem I've run into with the EUML frontend is the the _EVENT, _ACTION and _STATE macros define non-static instance variables. So, if I define a state machine in a header file which then gets included in multiple source files (e.g. I have two classes which use the same state machine) I get linker errors about duplicate instances. For states, I can work around this issue by doing, for example, BOOST_MSM_EUML_DECLARE_STATE((),MyStateType) static MyStateType MyState; and then using MyState in the transition table. Events and Actions don't seem to have the corresponding _DECLARE_ macros, so this workaround isn't really feasible at this point in time. Any thoughts? Thanks Nate
5039
Age (days ago)
5039
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nate Knight