Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get dependency if dependency is not used in parameter of function in make_transition_table #584

Open
lambdaknight opened this issue Jul 31, 2023 · 0 comments

Comments

@lambdaknight
Copy link

Expected Behavior

Successful compilation

Actual Behavior

Failed compilation

Steps to Reproduce the Problem

  1. Create a state machine with at least one dependency
  2. Don't directly place the dependency in the parameter to the actions. Instead, use the four default parametes (event, SM, dependencies, and subSMs) and call sml::aux::get<dependency&>(deps)

Example here:
https://godbolt.org/z/s67ovac19

The example currently does not compile. A comment switch will switch between the non-compiling and compiling version.

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

No branches or pull requests

1 participant