diff --git a/future.cpp b/future.cpp index 26384d8..7de407f 100644 --- a/future.cpp +++ b/future.cpp @@ -6,8 +6,8 @@ #include // std::chrono::milliseconds // a non-optimized way of checking for prime numbers. -bool is_prime (int x) { - for (int i=2; i fut = std::async(std::launch::async, is_prime, p2); std::cout << "just getting the result, doing an implicit wait():" << std::endl;