From ef055d4b7fdfde4a87d933c9f55e065d0cbab5e3 Mon Sep 17 00:00:00 2001 From: Alex Ainscow Date: Mon, 21 Jul 2025 08:17:57 +0100 Subject: [PATCH] osd: Replace deprecated std::align_storage_t with alignas C++23 has been enabled, causing deprecated warnings. Following the "possible implementation" in the C++ docs, I have replaced the last remaining aligned_storage_t. Signed-off-by: Alex Ainscow --- src/common/async/waiter.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/async/waiter.h b/src/common/async/waiter.h index 2dc032f6383f..ff06a589a4e7 100644 --- a/src/common/async/waiter.h +++ b/src/common/async/waiter.h @@ -138,8 +138,9 @@ public: template class waiter final : public detail::base { - std::aligned_storage_t ret; - + struct alignas(Ret) { + std::byte data[sizeof(Ret)]; + } ret; public: Ret wait() { auto l = wait_base(); -- 2.47.3