Boost logo

Boost :

Subject: Re: [boost] [msm] eUML guard/action location
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2010-01-10 08:41:19


On Sun, Jan 10, 2010 at 7:54 AM, joel falcou <joel.falcou_at_[hidden]> wrote:
> 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_ = {};

The user could. But not the library writer AFAIU, since these state
types are created by the user.

> --
> ___________________________________________
> Joel Falcou - Assistant Professor
> PARALL Team - LRI - Universite Paris Sud XI
> Tel : (+33)1 69 15 66 35

Regards,

-- 
Felipe Magno de Almeida

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