From 433df47fcdd8e60b3b04c12196735d32ae7776b4 Mon Sep 17 00:00:00 2001 From: Tim Ambrogi Date: Fri, 4 Mar 2022 16:13:44 -0500 Subject: [PATCH] Fixed MSVC configuration instructions in readme. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f456f7c..967e6a6 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,9 @@ Enabling Coroutines for C++14/17 (skip this step if using C++20) ---------------------------------------------------------------- C++ coroutines were only formally added to the standard with C++20. In order to use them with earlier standards (C++14 or C++17), you must enable coroutines using a special compiler-specific compile flag. -In __Visual Studio__, this is done by right-clicking your project and selecting Properties. Then navigate to Configuration Properties -> C/C++ -> Command Line, and add ```/await:strict``` to “Additional Options”: +In __Visual Studio__, this is done by right-clicking your project and selecting Properties. Then navigate to Configuration Properties -> C/C++ -> Command Line, and add ```/await``` to “Additional Options”. + +(__IMPORTANT NOTE:__ If you are using C++17, you should instead add ```/await:strict``` to "Additional Options", as above.) ![Enabling Coroutines in Visual Studio](images/setup02.png "Enabling Coroutines in Visual Studio")