Closed kilasuelika closed 8 months ago
That would be a mistake in the docs. cobalt::thread
should co_return
void
, not a value.
That would be a mistake in the docs.
cobalt::thread
shouldco_return
void
, not a value.
That's right. Thank you!
Following code:
is from official documentation: cobalt::thread. But it failed to compile in VS 2022 with
latest
standard:The error happens on the the line
co_return 0
.