From 73111b0bdaee9aa7daeb4d51f093064bd7d10cec Mon Sep 17 00:00:00 2001 From: annihilatorq <143023834+annihilatorq@users.noreply.github.com> Date: Sun, 8 Mar 2026 18:02:08 +0100 Subject: [PATCH] Ensure 16-byte block alignment on MSVC --- include/asio/co_composed.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/asio/co_composed.hpp b/include/asio/co_composed.hpp index f54d0a20ff..e714c901a2 100644 --- a/include/asio/co_composed.hpp +++ b/include/asio/co_composed.hpp @@ -988,7 +988,11 @@ class co_composed_promise using allocator_type = associated_allocator_t>; +#if defined(ASIO_MSVC) && !defined(__clang__) + union alignas(16) block +#else union block +#endif { std::max_align_t max_align; alignas(allocator_type) char pad[alignof(allocator_type)];