diff options
Diffstat (limited to 'cpp/src/shared_ptr.h')
-rw-r--r-- | cpp/src/shared_ptr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/shared_ptr.h b/cpp/src/shared_ptr.h index df08c325df..eb5f3f906a 100644 --- a/cpp/src/shared_ptr.h +++ b/cpp/src/shared_ptr.h @@ -37,6 +37,11 @@ template <class T> shared_ptr<T> make_shared_ptr(T* ptr) { return shared_ptr<T>(ptr); } +template <class T, class D> +shared_ptr<T> make_shared_ptr(T* ptr, D deleter) { + return shared_ptr<T>(ptr, deleter); +} + } // namespace qpid |