Fixes a bug that prevents coro::when_all from compiling when passing the result of a std::ranges::views of awaitables. The for-each loop in coro::when_all defines an auto& a when looping through awaitables, when it should use auto&& a since it's moving them into a vector.
Here is a minimal example that should compile, but currently doesn't.
Also there's a bug in your .githooks that changes all & in the code portions of your README to ${EXAMPLE_CORO_TASK_CPP}. I haven't fixed that, but you I thought you should know.
Fixes a bug that prevents
coro::when_all
from compiling when passing the result of a std::ranges::views of awaitables. The for-each loop incoro::when_all
defines anauto& a
when looping through awaitables, when it should useauto&& a
since it's moving them into a vector.Here is a minimal example that should compile, but currently doesn't.
Also there's a bug in your
.githooks
that changes all&
in the code portions of your README to${EXAMPLE_CORO_TASK_CPP}
. I haven't fixed that, but you I thought you should know.