From c67062f3c89764e83700a197fdf72f3f0fc22b69 Mon Sep 17 00:00:00 2001 From: Justen Di Ruscio Date: Tue, 18 Mar 2025 11:25:11 -0300 Subject: [PATCH] correct completion_handler_type of async_result --- asio/include/asio/impl/use_awaitable.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }