
On 2010-10-07 06:53, Igor R wrote:
My question is as follows - is it possible to define some kind of "catch all" handler in the OuterSt? Sure. Just define unconsumed_event() member function in your state machine.
http://www.boost.org/doc/libs/1_44_0/libs/statechart/doc/reference.html#unco... Ah, "unconsumed" was the key word :) Thank you, it works well.
P.S. just for archiving purposes, the point here is to add a handler to the actual state machine class/struct: struct StateMachine : sc::state_machine<StateMachine, OuterSt> { void unconsumed_event(const sc::event_base &) { log_error_xxx("Lost an event in the state machine..."); } }; Oleg.