summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-04 15:25:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-04 15:39:43 +0100
commit53a131085f3afcc2261027556dc1633fbb0723e1 (patch)
treed325a705f6e2d3826101af8626bd6b62e207ab91 /compat
parentfef5265f597926485e56c4ddee79fb88619462bd (diff)
compat/lqt: remove deprecated std::aligned_storage
Diffstat (limited to 'compat')
-rw-r--r--compat/LooseQuadtree-impl.h4
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 {