Show HN: CXXStateTree – A modern C++ library for hierarchical state machines

2 pointsposted 15 hours ago
by zigrazor

2 Comments

jeffreygoesto

15 hours ago

Nice and compact. I only wound have two nitpicks:

The Readme sais "zero heap allocations" but the code uses list and unordered map and moves, did you mean "zero allocations after state tree building"?

Also for embedded it would be useful to separate all in/out, dot export etc. to a second library that you can omit on small targets.

zigrazor

14 hours ago

yes, it means "zero allocations after state tree building". Thank you for the suggestions, I think we could separate target with compilation switch. If you want you can open an issue on the repo. Thank you so much