erikzenker / hsm

Finite state machine library based on the boost hana meta programming library. It follows the principles of the boost msm and boost sml libraries, but tries to reduce own complex meta programming code to a minimum.
MIT License
187 stars 18 forks source link

[FEATURE] SubSub...State explicit exits from RootState #181

Open erikzenkerLogmein opened 1 year ago

erikzenkerLogmein commented 1 year ago

Problem

If you are currently in a sub sub .... sub state of your state machine and an event is triggered triggered in the root state machine then this event is unexpected.

Current Workaround

Don't build state machines with substate level higher then one.

Proposed Solution

When generating substate exits also consider more levels.