
Thanks alot for your reply.. Do you have any sample code for doing that? Currently i am trying like this...I am not sure it is the correct way to do that. 1. Declared a local varable in State machine struct StateMachine:sc::state_machine<StateMachine, Initial> { int getData(); void setData(int data); private int data; } 2. Set the value SateMachine machine; machine.setData(100); machine.initiate(); machine.setData(200); machine.process_evet(event()); 3. access that value from state event handler sc::result Initial::react(const event()) { cout << "Data:" << context< StateMachine>().getData() << endl; } Please advise if there is any other better solution Thanks in advance justin -- View this message in context: http://boost.2283326.n4.nabble.com/Pass-data-to-states-in-boost-state-chart-... Sent from the Boost - Users mailing list archive at Nabble.com.