]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Replace deprecated std::align_storage_t with alignas 64595/head
authorAlex Ainscow <aainscow@uk.ibm.com>
Mon, 21 Jul 2025 07:17:57 +0000 (08:17 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Mon, 21 Jul 2025 07:31:04 +0000 (08:31 +0100)
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 <aainscow@uk.ibm.com>
src/common/async/waiter.h

index 2dc032f6383fa2966056c46a5e62e39a1787eeb1..ff06a589a4e7d530261fe67722bf86eae7f767f6 100644 (file)
@@ -138,8 +138,9 @@ public:
 
 template<typename Ret>
 class waiter<Ret> final : public detail::base {
-  std::aligned_storage_t<sizeof(Ret)> ret;
-
+  struct alignas(Ret) {
+    std::byte data[sizeof(Ret)];
+  } ret;
 public:
   Ret wait() {
     auto l = wait_base();