diff --git a/asio/include/asio/impl/use_awaitable.hpp b/asio/include/asio/impl/use_awaitable.hpp index 36d5bf749d..815126d696 100644 --- a/asio/include/asio/impl/use_awaitable.hpp +++ b/asio/include/asio/impl/use_awaitable.hpp @@ -191,20 +191,20 @@ class async_result, R(Args...)> { public: typedef typename detail::awaitable_handler< - Executor, decay_t...> handler_type; - typedef typename handler_type::awaitable_type return_type; + Executor, decay_t...> completion_handler_type; + typedef typename completion_handler_type::awaitable_type return_type; template #if defined(__APPLE_CC__) && (__clang_major__ == 13) __attribute__((noinline)) #endif // defined(__APPLE_CC__) && (__clang_major__ == 13) - static handler_type* do_init( + static completion_handler_type* do_init( detail::awaitable_frame_base* frame, Initiation& initiation, use_awaitable_t u, InitArgs&... args) { (void)u; ASIO_HANDLER_LOCATION((u.file_name_, u.line_, u.function_name_)); - handler_type handler(frame->detach_thread()); + completion_handler_type handler(frame->detach_thread()); std::move(initiation)(std::move(handler), std::move(args)...); return nullptr; }