diff options
-rw-r--r-- | libadhocutil/resourcePool.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libadhocutil/resourcePool.h b/libadhocutil/resourcePool.h index 609d710..9bb03f6 100644 --- a/libadhocutil/resourcePool.h +++ b/libadhocutil/resourcePool.h @@ -60,6 +60,13 @@ namespace AdHoc { ResourcePool(unsigned int maxSize, unsigned int keep); virtual ~ResourcePool(); + ResourcePool() = delete; + ResourcePool(const ResourcePool &) = delete; + ResourcePool(ResourcePool &&) = delete; + + void operator=(const ResourcePool &) = delete; + void operator=(ResourcePool &&) = delete; + /// Get a resource from the pool (maybe cached, maybe constructed afresh) ResourceHandle<Resource> get(); /// Get a resource from the pool (with timeout on max size of pool) |