From: David Abrahams (dave_at_[hidden])
Date: 2005-02-11 20:46:40
"Alexander Nasonov" <alnsn_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk