diff --git a/shared/source/utilities/bitcontainers.h b/shared/source/utilities/bitcontainers.h index ddd5dcc1c1..ea9ebf80b5 100644 --- a/shared/source/utilities/bitcontainers.h +++ b/shared/source/utilities/bitcontainers.h @@ -190,9 +190,10 @@ class OpaqueElementAllocator final { std::vector chunks; public: + template OpaqueElementAllocator(size_t chunkSize, size_t alignedElementSize, - UnderlyingAllocatorT underlyingAllocator) : chunkSize(chunkSize), alignedElementSize(alignedElementSize), - underlyingAllocator(std::move(underlyingAllocator)) { + GivenAllocatorT &&underlyingAllocator) : chunkSize(chunkSize), alignedElementSize(alignedElementSize), + underlyingAllocator(std::forward(underlyingAllocator)) { UNRECOVERABLE_IF(chunkSize < alignedElementSize); DEBUG_BREAK_IF((chunkSize % alignedElementSize) != 0); }