digint / tinyfsm

A simple C++ finite state machine library
https://digint.ch/tinyfsm
MIT License
931 stars 173 forks source link

Passing data to the state machine during initialization #5

Closed vagaruy closed 6 years ago

vagaruy commented 6 years ago

Do you have any suggestions on how to pass data to the state machine during construction . The templates sometimes get hard to understand :( Something like fsm::start(12,12312);

or any suggestions of a work around ?

vagaruy commented 6 years ago

Never mind. The answer was in the example provided.