Hi Chiem,
If you create an action, and inside that action you do a get_attribute on the state machine, and that state machine (MSM) is a
sub-statemachine of another (parent) MSM, and that sub-machine state happens to be the initial state of the parent machine
(that's a lot of ifs!), the code will not compile. It aborts with the mysterious error:
<snip>
BOOST_MSM_EUML_ACTION(someAction) { template
void operator()(Event const& event,FSM& fsm, STATE&) { fsm.get_attribute(borrowedBuffer_attribute)=1;
} };
Try:
BOOST_MSM_EUML_ACTION(someAction)
{
template