|
Boost : |
Subject: Re: [boost] [msm] eUML guard/action location
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-01-10 04:54:42
David Abrahams wrote:
>> typedef BOOST_TYPEOF(build_stt((
>> DestState() = CurrentState() + cool_event()[guard()]/action(),
>> DestState2() = CurrentState() + cool_event()[guard2()]/action2()
>> ) ) ) transition_table;
>>
>>
> You could declare those instances at namespace scope, in the same way
> most Proto terminals are declared, non?
>
As on as those types are POD, the proto trick can be used yes:
CurrenState const current_ = {};
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk