andreasbuhr / cppcoro

A library of C++ coroutine abstractions for the coroutines TS
MIT License
364 stars 53 forks source link

Default CMAKE_CXX_STANDARD to 20 #31

Closed andreasbuhr closed 3 years ago

andreasbuhr commented 3 years ago

So far, the user was required to set the C++ version. It is required that the user is able to select the version, as some users might want to work with the C++17 coroutine-ts and others want to work with C++20. However, this led to frustration with many users, as just invoking cmake did not lead to a working build. This patch changes the default to C++20, informing the user about this choice.