lewissbaker / cppcoro

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

translate "for co_await" to regular for loops using "co_await" #177

Closed andreasbuhr closed 3 years ago

andreasbuhr commented 3 years ago

"for co_await" was in the coroutine-ts but did not make it into the C++20 standard. This patch translates the "for co_await" which were used to standard for loops using "co_await". This is necessary to compile on MSVC 1928 in with c++-latest.