|
Boost : |
Subject: Re: [boost] [msm] Passing constructor arguments to submachine
From: David Abrahams (dave_at_[hidden])
Date: 2010-06-01 15:58:09
At Tue, 1 Jun 2010 20:08:20 +0200,
Christophe Henry wrote:
>
> Hi Michael,
>
> > As already explained in another thread, it is possible to pass constructor
> > arguments to msm state machines (to the front end).
> >
> > Is it also possible to pass constructor arguments to submachines of a msm
> > state machine?
>
> Unfortunately, not yet. There was a proposal made during the review to
> allow states (including submachines) to be cloned from an existing
> one, but it is not implemented yet.
The Parameter library can sometimes be used to make this sort of thing
work nicely. See Boost.Accumulators, for example.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk