From: David Abrahams (dave_at_[hidden])
Date: 2004-09-14 16:27:46
"Andreas Huber" <ah2003_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk