Skip to content

docs: states can hold data, FAQ entries for state data and thread safety (#566) - #739

Merged
kris-jusiak merged 3 commits into
boost-ext:masterfrom
PavelGuzenfeld:docs/issue-566-state-data
Oct 18, 2026
Merged

kris-jusiak merged 3 commits into
boost-ext:masterfrom
PavelGuzenfeld:docs/issue-566-state-data

Conversation

@PavelGuzenfeld

@PavelGuzenfeld PavelGuzenfeld commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

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

@kris-jusiak
kris-jusiak merged commit 947ed33 into boost-ext:master Oct 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question about states and data

2 participants