sml icon indicating copy to clipboard operation
sml copied to clipboard

Cannot get access to state objects in log_state_change

Open Icantjuddle opened this issue 2 years ago • 0 comments

Expected Behavior

I've been keeping small amounts of state in my state machine's state types (i.e. time it was activated). I'd like to be able to access this data in the logger to print it out.

So far I have been unable to figure out how to do this. I've tried log_state_change and log_event for an on_entry event but haven't figured it out.

It seems this results from the type signature and that the actual state objects could be available.

https://github.com/boost-ext/sml/blob/0387da02f243c29e7b5e2810b9e556cde0c75a85/include/boost/sml.hpp#L2491-L2498

Actual Behavior

No way to log state objects.

Icantjuddle avatar Jun 07 '23 23:06 Icantjuddle