Commit 94f52d49 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

BlockAllocator: Delete copy ctor and assignment operator

parent 0720671e
......@@ -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<MemBlock *>(block);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment