lewissbaker / cppcoro

A library of C++ coroutine abstractions for the coroutines TS
MIT License
3.43k stars 470 forks source link

C1189 #error: The <experimental/coroutine> and <experimental/resumable> headers are only supported with /await and implement pre-C++20 coroutine support. Use <coroutine> for standard C++20 coroutines. #211

Open Chritek opened 2 years ago

Chritek commented 2 years ago

Hello, I´m pretty new to... well kinda everything and I have an issue at the networking stuff. As needed I am using C++20, but as you can see in the title VS wants me to get rid of "experimental" (I understand why), but if I do that, io_service.hpp will throw a lot of errors and I´m not sure how to fix that. Can someone help me? Might be REALLY easy to solve, but I dunno how. Thanks for your work and have a great time.

komiIT commented 2 years ago

add "/await" flag, or try andreasbuhr branch

cppcoro Screenshot_1