Boost logo

Boost :

Subject: Re: [boost] [msm] deferral stack overfolw
From: Christophe Henry (christophe.j.henry_at_[hidden])
Date: 2011-12-08 14:18:49


>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




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk