Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed example in README

Lambdas with multiple statements must have a return type specified.
  • Loading branch information...
commit d835fa011fbc4fb9098ac4a75fa61c347c51f5f2 1 parent f507600
@Amanieu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -20,7 +20,7 @@ int main()
std::cout << "Task 2 executes in parallel with task 1" << std::endl;
return 42;
});
- auto task3 = task2.then([](int value) {
+ auto task3 = task2.then([](int value) -> int {
std::cout << "Task 3 executes after task 2, which returned " << value << std::endl;
return value * 3;
});
Please sign in to comment.
Something went wrong with that request. Please try again.