diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-04 15:25:25 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-04 15:39:43 +0100 |
commit | 53a131085f3afcc2261027556dc1633fbb0723e1 (patch) | |
tree | d325a705f6e2d3826101af8626bd6b62e207ab91 /compat | |
parent | fef5265f597926485e56c4ddee79fb88619462bd (diff) |
compat/lqt: remove deprecated std::aligned_storage
Diffstat (limited to 'compat')
-rw-r--r-- | compat/LooseQuadtree-impl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compat/LooseQuadtree-impl.h b/compat/LooseQuadtree-impl.h index 470377c8..694d04d1 100644 --- a/compat/LooseQuadtree-impl.h +++ b/compat/LooseQuadtree-impl.h @@ -54,7 +54,9 @@ public: void Delete(T* p); private: - using Block = std::aligned_storage<kBlockSize, kBlockAlign>::type; + struct Block { + alignas(kBlockAlign) unsigned char data[kBlockSize]; + }; //template <std::size_t kSizeT> //union Slot { |