
8 Dec
2011
8 Dec
'11
7:18 p.m.
Hi Chistophe
I have tried in the little example the change you have suggested :
struct LogDefer { typedef int deferring_action; template <class EVT,class FSM,class SourceState,class TargetState> void operator()(EVT const& evt,FSM& fsm,SourceState& src_,TargetState& ) const { std::cout << fsm.m_SmName << " DEFERED: " << evt.getName() << std::endl; fsm.defer_event(evt); } };
but it did not help for me .... ?. :(. Sill stack overflow.
Hi Richard, are you sure you didn't change anything else? I took your example and changed this line and it works fine (with trunk version, admittedly). I attach the code again. Tested with VC10. Cheers, Christophe