Given the experimental status of coroutines in C++20, different compilers have distinct locations for the coroutines headers.
Due to this, e.g. when using clang an #include <experimental/coroutine> is required instead of the normal coroutine include.
The code below is tested on clang versions 11 & 13 inside a debian based buildcontainer.
Given the experimental status of coroutines in C++20, different compilers have distinct locations for the coroutines headers. Due to this, e.g. when using
clang
an#include <experimental/coroutine>
is required instead of the normal coroutine include.The code below is tested on
clang
versions11
&13
inside adebian
based buildcontainer.