Disable copy and move operations for dyn_node_pool.

This commit is contained in:
faluco 2021-04-13 16:14:19 +02:00 committed by faluco
parent a2f6e13138
commit daad20c9d4
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ public:
}
}
dyn_node_pool(const dyn_node_pool&) = delete;
dyn_node_pool(dyn_node_pool&&) = delete;
dyn_node_pool& operator=(dyn_node_pool&&) = delete;
dyn_node_pool& operator=(const dyn_node_pool&) = delete;
void* alloc(std::size_t sz) {
assert(sz <= dynamic_arg_list::max_pool_node_size && "Object is too large to fit in the pool");