From 77442519955c53ba0a6a504e492e0ef52ce688c3 Mon Sep 17 00:00:00 2001 From: "Chodor, Jaroslaw" Date: Wed, 16 Apr 2025 08:08:42 +0000 Subject: [PATCH] refactor: explicit copy/move operations in OpaqueElementAllocator Signed-off-by: Chodor, Jaroslaw --- shared/source/utilities/bitcontainers.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/source/utilities/bitcontainers.h b/shared/source/utilities/bitcontainers.h index 57ae790973..ddd5dcc1c1 100644 --- a/shared/source/utilities/bitcontainers.h +++ b/shared/source/utilities/bitcontainers.h @@ -203,6 +203,11 @@ class OpaqueElementAllocator final { } } + OpaqueElementAllocator(OpaqueElementAllocator &&) = default; + OpaqueElementAllocator &operator=(OpaqueElementAllocator &&) = default; + OpaqueElementAllocator(const OpaqueElementAllocator &) = delete; + OpaqueElementAllocator &operator=(const OpaqueElementAllocator &) = delete; + AllocationT allocate() { for (auto &chunk : chunks) { auto *va = chunk.allocate();