Skip to content

Commit

Permalink
Fix compile error when both experimental::channel and experimental::c…
Browse files Browse the repository at this point in the history
…oro are used.
  • Loading branch information
chriskohlhoff committed Apr 2, 2024
1 parent c0fbbdd commit 6e9cc9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion asio/include/asio/experimental/detail/channel_service.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class channel_service
struct implementation_type;

// Constructor.
channel_service(execution_context& ctx);
channel_service(asio::execution_context& ctx);

// Destroy all user-defined handler objects owned by the service.
void shutdown();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ namespace experimental {
namespace detail {

template <typename Mutex>
inline channel_service<Mutex>::channel_service(execution_context& ctx)
inline channel_service<Mutex>::channel_service(
asio::execution_context& ctx)
: asio::detail::execution_context_service_base<channel_service>(ctx),
mutex_(),
impl_list_(0)
Expand Down

0 comments on commit 6e9cc9a

Please sign in to comment.