aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-03 10:50:37 +0200
committerStefan Boberg <[email protected]>2021-09-03 10:50:37 +0200
commit24c5563e17bf7c73b65dcc84de37240b59f69661 (patch)
tree03c6ee221948d4db1e488fcd2adbfcf66b701bbd /zencore/include
parentAdded missing typename keyword (diff)
downloadzen-24c5563e17bf7c73b65dcc84de37240b59f69661.tar.xz
zen-24c5563e17bf7c73b65dcc84de37240b59f69661.zip
Disallow copying of ChunkingLinearAllocator
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/memory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zencore/include/zencore/memory.h b/zencore/include/zencore/memory.h
index 8b18305e3..040f97025 100644
--- a/zencore/include/zencore/memory.h
+++ b/zencore/include/zencore/memory.h
@@ -52,6 +52,9 @@ public:
ZENCORE_API void* Alloc(size_t Size, size_t Alignment = sizeof(void*));
inline void Free(void* Ptr) { ZEN_UNUSED(Ptr); /* no-op */ }
+ ChunkingLinearAllocator(const ChunkingLinearAllocator&) = delete;
+ ChunkingLinearAllocator&operator=(const ChunkingLinearAllocator&) = delete;
+
private:
uint8_t* m_ChunkCursor = nullptr;
uint64_t m_ChunkBytesRemain = 0;