From 391b9d8245603c88b012b81b815b5d12b15e66df Mon Sep 17 00:00:00 2001 From: Tessil Date: Mon, 9 Oct 2023 19:53:36 +0100 Subject: [PATCH] Replace depecrated std::aligned_storage since C++23 by alignas --- include/tsl/hopscotch_hash.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/tsl/hopscotch_hash.h b/include/tsl/hopscotch_hash.h index ed5f858..f4d17ee 100644 --- a/include/tsl/hopscotch_hash.h +++ b/include/tsl/hopscotch_hash.h @@ -386,11 +386,8 @@ class hopscotch_bucket : public hopscotch_bucket_hash { } private: - using storage = typename std::aligned_storage::type; - neighborhood_bitmap m_neighborhood_infos; - storage m_value; + alignas(value_type) unsigned char m_value[sizeof(value_type)]; }; /**