
14 Sep
2004
14 Sep
'04
9:27 p.m.
"Andreas Huber" <ah2003@gmx.net> writes:
Alexander Nasonov wrote:
Andreas Huber wrote:
This all looks very nice. Is it possible to use this scheme with polymorphic states, as follows:
See attachment. It is slow but demonstrates the idea and can be improved later.
Wow! So simple and yet powerful. It naturally supports nested states and polymorphic events. I guess this could quite easily be developed into a fast & lightweight boost::fsm alternative. Cool!
It's very close to the organization of the MPL FSM samples I have posted in the past... only there's no dumb O(N) for_each dispatching in my samples: they're O(1). -- Dave Abrahams Boost Consulting http://www.boost-consulting.com