Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost 1.49 msm And_ operator
From: Juraj Ivanèiæ (juraj.ivancic_at_[hidden])
Date: 2012-07-30 17:30:34


On 30.7.2012. 17:04, Kamel Zaarouri, Mr wrote:
> Hi,
> I know this may seem silly but is there an operator that I can use to combine actions in the transition table to same way I can "and" guard conditions?
>
> if I have 2 guards, g1 and g2 in the transition table I can write under guard And_<g1,g2>
>
> what if I want to execute 2 actions upon a transition, obviously I can't have And_<a1,a2> since actions do not return boolean.
>
> Any idea?
>
> Thanks.

Use boost::msm::front::ActionSequence_, as described in

http://www.boost.org/doc/libs/1_50_0/libs/msm/doc/HTML/ch03s03.html


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