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

Enable parallel::begin<void> #687

Closed
codemercenary opened this issue Jul 29, 2015 · 0 comments
Closed

Enable parallel::begin<void> #687

codemercenary opened this issue Jul 29, 2015 · 0 comments
Assignees
Milestone

Comments

@codemercenary
Copy link
Contributor

Let the following code work:

for (int i : {0,4,2,5,1,3}) {
  int sleepTime = dist(mt);
  p += [i, sleepTime]() {};
}

std::vector<int> result;
for (auto it = p.begin<void(); it != p.end<void>(); ++it);

A specialization for parallel::begin<void> is needed to get this code functional.

@codemercenary codemercenary added this to the v0.8.0 milestone Jul 29, 2015
@codemercenary codemercenary self-assigned this Jul 29, 2015
codemercenary added a commit that referenced this issue Jul 29, 2015
This allows lambdas that have no return type to be added to the parallel collection, and have their completion status be tracked the same way.

Fixes #687
codemercenary added a commit that referenced this issue Jul 29, 2015
This allows lambdas that have no return type to be added to the parallel collection, and have their completion status be tracked the same way.

Fixes #687
codemercenary added a commit that referenced this issue Jul 30, 2015
This allows lambdas that have no return type to be added to the parallel collection, and have their completion status be tracked the same way.

Fixes #687
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