chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.94k stars 1.22k forks source link

throw_if_cancelled_1_t ctor must be explicit #1203

Open klemens-morgenstern opened 1 year ago

klemens-morgenstern commented 1 year ago

the ctor of throw_if_cancelled_1_t ctor must be explicit otherwise this works:

boost::asio::awaitable<void> test()
{
    co_await true;
}

https://gcc.godbolt.org/z/vKc3rfd9K