diff --git a/src/allocator.h b/src/allocator.h index 28fe8eb0..64bdff49 100644 --- a/src/allocator.h +++ b/src/allocator.h @@ -62,6 +62,12 @@ struct BlockAllocator { } } + BlockAllocator(BlockAllocator &&) = default; + BlockAllocator &operator=(BlockAllocator &&) = default; + + BlockAllocator(const BlockAllocator &) = delete; + BlockAllocator &operator=(const BlockAllocator &) = delete; + MemBlock *alloc_mem_block(size_t size) { auto block = new uint8_t[sizeof(MemBlock) + size]; auto mb = reinterpret_cast(block);