From 4d2bf93b7a5e219ef2b394bfbd6cd08c407fcb5a Mon Sep 17 00:00:00 2001 From: Istvan Haller Date: Mon, 23 Aug 2021 16:33:48 +0100 Subject: [PATCH] Deleted the ability to implicitly copy LocalAllocator --- src/mem/localalloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mem/localalloc.h b/src/mem/localalloc.h index 357e897..0ae59f1 100644 --- a/src/mem/localalloc.h +++ b/src/mem/localalloc.h @@ -344,6 +344,8 @@ namespace snmalloc public: constexpr LocalAllocator() = default; + LocalAllocator(const LocalAllocator&) = delete; + LocalAllocator& operator= (const LocalAllocator&) = delete; /** * Initialise the allocator. For allocators that support local