chriskohlhoff / asio

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

Compile error when including experimental/coro.hpp before experimental/channel.hpp #1456

Closed ayyatsenko closed 2 months ago

ayyatsenko commented 3 months ago

Compiler fails on experimental/detail/channel_service.hpp:86

channel_service(execution_context& ctx);

where execution_context should be used from asio/execution_context.hpp but compiler prefers a concept with the same name from experimental/coro_traits.hpp:35 and in the same namespace - asio::experimental::detail .

ayyatsenko commented 2 months ago

Fixed in 6e9cc9abd2b7bcd69f0f976a0c711558cc49d1dc

@chriskohlhoff Thank you very much!