From: Jihoon Chung Date: Thu, 10 Oct 2013 11:51:35 +0000 (+0900) Subject: Add deprecated mark to "DPL::AutoPtr" X-Git-Tag: submit/tizen_2.2/20131011.084301^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2169a02c4ae3df3032fe0220671294f33875fd42;p=platform%2Fframework%2Fweb%2Fwrt-commons.git 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 --- 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) {}