
12 Feb
2005
12 Feb
'05
1:46 a.m.
"Alexander Nasonov" <alnsn@yandex.ru> writes:
struct Fsm { Running operator()( id<1>, Passive, EvActivate ) const; Stopped operator()( id<2>, Running, EvStartStop ) const; Running operator()( id<3>, Stopped, EvStartStop ) const; Stopped operator()( id<4>, Active, EvReset ) const; // ... };
It's not directly relevant to your overloads component, but I'm very curious as to why you want to use _types_ to represent states. It seems counter-productive because of course types are static, and states are, well, stateful. Don't you end up wasting time and code translating between states and types? -- Dave Abrahams Boost Consulting www.boost-consulting.com