Boost logo

Boost Users :

Subject: Re: [Boost-users] [MSM] Best place to execute an action with return value
From: Christophe Henry (christophe.j.henry_at_[hidden])
Date: 2013-12-01 15:36:26


>> HTH,
>> Christophe
>
>
> Hi Christophe,
> thanks for your reply (and thanks a lot for this great library!).
>
> I ask you another quick thing (also if I should open another topic):
> using a functor front-end, how can I add more method to the states (Eg.
> to add the visitor pattern)?
>
> Thanks,
> Daniele

Hi,

the link is there:
http://svn.boost.org/svn/boost/trunk/libs/msm/doc/HTML/ch03s05.html#d0e2433
But at the moment, you can define only one accept method.
Don't forget to make all states and front-end inherit the same base state.

HTH,
Christophe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net