Repository navigation
docs: states can hold data, FAQ entries for state data and thread safety (#566) - #739
Merged
kris-jusiak merged 3 commits intoOct 18, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tutorial.md still says states cannot have data, but example/data.cpp does exactly that. Reworded the line and linked the Data example.
Added FAQ entries for questions that came up in open issues and had no answer in the docs: state data, thread safety, wildcard events and unexpected_event<>, state<> defaults, "name"_e, sub-machine state, directed entry into a composite, reusing a base table, building the table conditionally, can_process, ignoring events during work, process built from the incoming event, errors back to the caller, loggers and context, debugger state, wrap() with temporaries. Each snippet was compiled and run on master with gcc 14 and clang 21, the answers are also posted on the issues.
Closes #566