From 3a8c90c0d49486e8a7e9bd777b0cf1e5b086b289 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 19 Jan 2017 10:20:34 -0500 Subject: [PATCH] acquire shared --- util.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util.h b/util.h index 2ee1c286..38ca6b28 100644 --- a/util.h +++ b/util.h @@ -72,6 +72,12 @@ namespace util std::bind (&MemoryPool::Release, this, std::placeholders::_1)); } + template + std::shared_ptr AcquireShared (TArgs&&... args) + { + return std::shared_ptr(Acquire (args...), std::bind (&MemoryPool::Release, this, std::placeholders::_1)); + } + protected: T * m_Head;