From e597d7fb4124463f8a36cbef2b0248544d68120a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 4 Jun 2024 13:13:29 +0100 Subject: Replace std::aligned_storage with a non-deprecated alternative. --- include/utility/aligned_storage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/utility/aligned_storage.h b/include/utility/aligned_storage.h index e3e3895f8..83b8ce75d 100644 --- a/include/utility/aligned_storage.h +++ b/include/utility/aligned_storage.h @@ -30,7 +30,7 @@ class insp::aligned_storage final { private: /** The underlying aligned storage block. */ - mutable typename std::aligned_storage>::type data; + alignas(T) mutable std::byte data[sizeof(T)]; public: /** Default constructor for the aligned_storage class. */ -- cgit v1.3.1-10-gc9f91