From: Alex Ainscow Date: Mon, 21 Jul 2025 07:17:57 +0000 (+0100) Subject: osd: Replace deprecated std::align_storage_t with alignas X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ef055d4b7fdfde4a87d933c9f55e065d0cbab5e3;p=ceph.git 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 --- diff --git a/src/common/async/waiter.h b/src/common/async/waiter.h index 2dc032f6383fa..ff06a589a4e7d 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();