Explorar el Código

Silence std::aligned_storage warnings as it's deprecated in C++23,
replace it with alignas() and a C array

Kelebek1 hace 3 años
padre
commit
f294b886db
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/common/parent_of_member.h

+ 1 - 1
src/common/parent_of_member.h

@@ -11,7 +11,7 @@ namespace Common {
 namespace detail {
 template <typename T, size_t Size, size_t Align>
 struct TypedStorageImpl {
-    std::aligned_storage_t<Size, Align> storage_;
+    alignas(Align) u8 storage_[Size];
 };
 } // namespace detail