Subject: Re: [Boost-users] [StateChart] Accessing machine and state members from within state constructor
From: Igor R (boost.lists_at_[hidden])
Date: 2012-07-11 07:19:38


> 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++;