11 Jul
2012
11 Jul
'12
11:19 a.m.
StateBase( my_context ctx ) : base_type( ctx ) { std::cout << "StateBase cst" << std::endl; // critical section outermost_context().fsmValue++; // access member of FSM (outermost context) ctx().stateValue++; // access member in direct context
The above line sould be: context<Active>().stateValue++;