sml
sml copied to clipboard
what is the SML-equivalent of MSM's state flags ?
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 ?!