Open Micbetter opened 2 years ago
Not sure this is exactly what you are looking for:
static void on_entry_action(std::string i) {std::cout << "on_entry_action " << i << std::endl;}
...
, "Init"_s + sml::on_entry<_> / [] { on_entry_action("Init");}
, state<s3> + sml::on_entry<_> / [] { ( std::cout << "entering " << std::string{sml::aux::string< s3>{}.c_str()} << std::endl ) ;}
, state<S4> + sml::on_exit<_> / [] { on_exit_action( std::string{sml::aux::string< S4>{}.c_str()} ); }
Question
I want to get the current states in action. I found some solutions in [#94] and tried to pass sm to my action function. But it didn't work for me.
My code
Error
Some compile errors occured.
Specifications