sml icon indicating copy to clipboard operation
sml copied to clipboard

what is the SML-equivalent of MSM's state flags ?

Open osmeest opened this issue 6 years ago • 0 comments

I used MSM for rather large/complex state machines. The code around those FSM needed to query if it was in one of N states. This was implemented using MSM state flags. Looking at SML, I see no way to implement this.

One possibility could have been to use visit_current_states() but the visitor does not get the state, but a string (state id?). In some example code, one is fetching the state from that id using something from boost::sml::aux. That sounds rather quircky. Why can't that method visit the states as either sml::state<State> or even State ?!

osmeest avatar Dec 02 '19 11:12 osmeest