BlockAllocator: Delete copy ctor and assignment operator
This commit is contained in:
parent
0720671e0a
commit
94f52d49dc
|
@ -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) {
|
MemBlock *alloc_mem_block(size_t size) {
|
||||||
auto block = new uint8_t[sizeof(MemBlock) + size];
|
auto block = new uint8_t[sizeof(MemBlock) + size];
|
||||||
auto mb = reinterpret_cast<MemBlock *>(block);
|
auto mb = reinterpret_cast<MemBlock *>(block);
|
||||||
|
|
Loading…
Reference in New Issue