aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-06-04 13:13:29 +0100
committerGravatar Sadie Powell2024-06-04 13:14:43 +0100
commite597d7fb4124463f8a36cbef2b0248544d68120a (patch)
tree095788648b0ca88200b3f74ae174906f7499a97d /include
parentAdd nullability attributes to module functions. (diff)
Replace std::aligned_storage with a non-deprecated alternative.
Diffstat (limited to 'include')
-rw-r--r--include/utility/aligned_storage.h2
1 files changed, 1 insertions, 1 deletions
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<sizeof(T), std::alignment_of_v<T>>::type data;
+ alignas(T) mutable std::byte data[sizeof(T)];
public:
/** Default constructor for the aligned_storage class. */