Subject: Re: [boost] [msm] Review
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2009-11-30 13:35:46
Christophe Henry wrote:
> You already have state local storage with msm, just not like with SC.
> Like SC, msm defines states as classes, meaning they can have data.
> There is however one important difference with SC. Msm builds all the
> states upon state machine creation. States are not destroyed until
> state machine destruction. This has advantages and disadvantages:
> - states must be default-constructible
I know nothing about MSM and very little about state machines in
general, but if all states are constructed at SM instantiation time,
would it be possible to pass the SM constructor a tuple of constructed
states that are copied/moved into the internal states? Would it be worth
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk