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

Variadic templates support for actions #1332

Merged
merged 7 commits into from
Dec 22, 2014
Merged

Conversation

K-ballo
Copy link
Member

@K-ballo K-ballo commented Dec 18, 2014

This PR introduces variadic templates support for actions, including a number of refactions and simplifications to make it possible.

  • The basic action was renamed to basic_action, and takes a function signature instead of a result and a tuple of arguments.
  • Actions returning void and actions returning a result were unified (plain_action/plain_result_action -> plain_action).
  • Plain actions and component actions were unified (plain_action -> action).

@hkaiser
Copy link
Member

hkaiser commented Dec 18, 2014

\o/

@hkaiser
Copy link
Member

hkaiser commented Dec 19, 2014

Would it be now possible to unify the HPX_FOO_ACTION macros? I'd very much like to have to write HPX_ACTION only (instead of HPX_PLAIN_ACTION, etc.).

@K-ballo
Copy link
Member Author

K-ballo commented Dec 19, 2014

Would it be now possible to unify the HPX_FOO_ACTION macros? I'd very much like to have to write HPX_ACTION only (instead of HPX_PLAIN_ACTION, etc.).

Yes, and it's also possible to simplify actions implementations much further still. That will come at a later PR

>::type
>
>::type
lcos::future<
Copy link
Member

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?

Copy link
Member Author

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.

@hkaiser
Copy link
Member

hkaiser commented Dec 21, 2014

LGTM

K-ballo added a commit that referenced this pull request Dec 22, 2014
Variadic templates support for actions
@K-ballo K-ballo merged commit c182b3f into STEllAR-GROUP:master Dec 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants