Boost logo

Boost Users :

Subject: Re: [Boost-users] [MSM] What's the easiest way to share data between states in a Boost.MSM state machine?
From: Christophe Henry (christophe.j.henry_at_[hidden])
Date: 2012-05-08 15:59:05


>Update:
>I found a template named "boost::msm::back::is_composite_state" which can be used to select a visitor type based on whether there are
>child states or not. With this useful metafunction, it was quite easy to make a recursive function that iterates over all states. So unless
>there are some major drawbacks with this method there is no need for any more specific examples.
>

>Best regards,
>Tommy

Hi,

thinking about it again, I think your method not only works but also is less hassle that what I had in mind.
Good idea!

Christophe



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net