From 2169a02c4ae3df3032fe0220671294f33875fd42 Mon Sep 17 00:00:00 2001 From: Jihoon Chung Date: Thu, 10 Oct 2013 20:51:35 +0900 Subject: [PATCH] Add deprecated mark to "DPL::AutoPtr" [Issue#] N/A [Problem] DPL::AutoPtr should replace to use standard library. [Cause] After C++11 is enabled, std::unique_ptr and std::shared_ptr is available. DPL::AutoPtr isn't necessary to exist in the DPL. [Solution] To announce deprecated, add DPL_DEPRECATED macro to constructor. [SCMRequest] N/A Change-Id: Ic715039cb67cbd5295d7ba6e1768af1f876c0a35 --- modules/core/include/dpl/auto_ptr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core/include/dpl/auto_ptr.h b/modules/core/include/dpl/auto_ptr.h index f5838d8..3d23091 100644 --- a/modules/core/include/dpl/auto_ptr.h +++ b/modules/core/include/dpl/auto_ptr.h @@ -27,6 +27,8 @@ #include #include +#include + namespace DPL { /* * base deleter func @@ -48,7 +50,7 @@ template class AutoPtr { public: - AutoPtr(T *ptr) : + DPL_DEPRECATED_WITH_MESSAGE("use std::unique_ptr or std::shared_ptr") AutoPtr(T *ptr) : m_data(ptr) {} -- 2.34.1