
On Sun, Jan 10, 2010 at 7:54 AM, joel falcou <joel.falcou@lri.fr> 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