From eaac06fa6a97268b0ca25cef95c2e49189d553b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Korina=20=C5=A0imi=C4=8Devi=C4=87?= Date: Mon, 12 Feb 2024 13:05:57 +0100 Subject: [PATCH] Buildable with Boost 1.84 Summary: related to T13686, #5 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D27869 --- include/async_mqtt5/impl/async_sender.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/async_mqtt5/impl/async_sender.hpp b/include/async_mqtt5/impl/async_sender.hpp index 23653b2..4fcf760 100644 --- a/include/async_mqtt5/impl/async_sender.hpp +++ b/include/async_mqtt5/impl/async_sender.hpp @@ -267,14 +267,14 @@ private: _svc._replies.clear_fast_replies(); - auto ex = write_queue.front().get_executor(); auto alloc = write_queue.front().get_allocator(); + auto ex = write_queue.front().get_executor(); _svc._stream.async_write( buffers, - asio::bind_executor( - ex, - asio::bind_allocator( - alloc, + asio::bind_allocator( + alloc, + asio::bind_executor( + ex, asio::prepend(std::ref(*this), std::move(write_queue)) ) )