
30 Nov
2009
30 Nov
'09
6:35 p.m.
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 the effort? Sebastian