From 62ca124a877153117f0e06c0f7b0b7e7340b8a16 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Sun, 30 Jun 2024 19:25:49 +1000 Subject: [PATCH] Ensure initiation object copyability is reflected in a deferred async op. --- asio/include/asio/deferred.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asio/include/asio/deferred.hpp b/asio/include/asio/deferred.hpp index 43807c709d..c12a0e85f3 100644 --- a/asio/include/asio/deferred.hpp +++ b/asio/include/asio/deferred.hpp @@ -325,7 +325,8 @@ class ASIO_NODISCARD deferred_async_operation detail::index_sequence) const & -> decltype( async_initiate( - initiation_t(initiation_), token, std::get(init_args_)...)) + conditional_t(initiation_), + token, std::get(init_args_)...)) { return async_initiate( initiation_t(initiation_), token, std::get(init_args_)...);