Skip to content

Commit de710f1

Browse files
authored
Require coroutine support for C++/WinRT
Add error message for missing coroutine support in C++.
1 parent 6c2773b commit de710f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

strings/base_includes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@
4949

5050
#ifdef __cpp_lib_coroutine
5151
#include <coroutine>
52+
#else
53+
#error C++/WinRT requires coroutine support, which is currently missing. Try enabling C++20 in your compiler or adding '/await:strict' to your C++17 build.
5254
#endif

0 commit comments

Comments
 (0)