-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
Variadic templates support for actions #1332
Conversation
\o/ |
Would it be now possible to unify the |
Yes, and it's also possible to simplify actions implementations much further still. That will come at a later PR |
>::type | ||
> | ||
>::type | ||
lcos::future< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove the enable_if here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and in a few other places. Because they are not disambiguating anything, and the kind of errors this gives when misused is the worst.
LGTM |
Variadic templates support for actions
This PR introduces variadic templates support for actions, including a number of refactions and simplifications to make it possible.
action
was renamed tobasic_action
, and takes a function signature instead of a result and a tuple of arguments.plain_action/plain_result_action
->plain_action
).plain_action
->action
).