qlibs / sml

C++20 State Machine library
166 stars 7 forks source link

make `transition` accept a class instead of `fixed_hash_string` #1

Closed uyha closed 7 months ago

uyha commented 1 year ago

In the original sml, I frequently use state<some_class> to annotate the state, this prevents typo and also allows hierarchical state machine (I'm not sure if sml2 supports hierarchical state machine yet). So I think it's a better to use types (or concepts).

krzysztof-jusiak commented 11 months ago

Agree, I believe this part of the original design was correct and we should extend sml2 with that too.

krzysztof-jusiak commented 7 months ago

Fixed by https://github.com/boost-ext/sml2/commit/f55a9b45af8f7d6362587692e4244a33dce58c7a