Open andrei-datcu opened 2 years ago
Does the noop_coroutine equate to false?
No, it does not, sorry for the confusion.
To give more context to my original problem:
I stumbled upon this when compiling my code with -Og
. Running on clang14 + libcpp14 I got the asserts erroneously triggered.
The assert just shouldn't be there, it's left over from development.
@klemens-morgenstern All asserts or not?
All of them are faulty.
Ex: https://github.com/chriskohlhoff/asio/blob/8869d25/asio/include/asio/experimental/impl/coro.hpp#L1014
According to cppreference:
Would
assert(!coro->awaited_from)
suffice?cc @klemens-morgenstern