We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code fails to compile on VS2015 Update 3. If futures are changed to take and return ints, then everything works.
#include <stlab/concurrency/concurrency.hpp> #include <iostream> int main(int argc, char *argv[]) { std::cout << "1\n"; auto future = stlab::async(stlab::default_executor, [] {std::cout << "2\n"; }); auto future2 = future.then([] {std::cout << "3\n"; }).then([] {std::cout << "5\n"; }); auto future3 = future.then([] {std::cout << "4\n"; }); auto future4 = stlab::when_all(stlab::default_executor, [] {std::cout << "6\n"; }, future2, future3); std::cout << "7\n"; while (!future4.get_try()); return 0; }
The text was updated successfully, but these errors were encountered:
Thanks for the report- we are aware of the issue and are looking into it.
Sorry, something went wrong.
This has been fixed in develop as of d91c3f0 and will be part of the next release.
develop
This issue has been fixed in master as of the 1.1 release.
No branches or pull requests
The following code fails to compile on VS2015 Update 3. If futures are changed to take and return ints, then everything works.
The text was updated successfully, but these errors were encountered: