
10 Jan
2010
10 Jan
'10
9:54 a.m.
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