We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c9083 commit aeba70eCopy full SHA for aeba70e
docs/languages/C&C++/modern_cpp.md
@@ -951,7 +951,7 @@ void critical_section(int change_v) {
951
#include <future>
952
953
int main(){
954
- auto result = std::async([](){return 7;});
+ auto result = std::async(std::launch::async, [](){return 7;});
955
std::cout << "waiting..." << std::endl;
956
std::cout << "future result is " << result.get() << std::endl;
957
return 0;
0 commit comments