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

Call once function wrapper #45

Open
localghost opened this issue Oct 3, 2014 · 0 comments
Open

Call once function wrapper #45

localghost opened this issue Oct 3, 2014 · 0 comments
Assignees
Milestone

Comments

@localghost
Copy link
Owner

Because std::function is designed with multiple executions in mind there is no possibility to move arguments to the callable object on invocation. However, since base::task can be called only once it is possible to guarantee that arguments to the callable stored by the task can be passed via move. This would allow to use moveable only types as arguments.

@localghost localghost self-assigned this Oct 3, 2014
@localghost localghost added this to the 0.1 milestone Oct 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant