From 472e8bbaf05dcb8877a0e8cf3f37d3cdc067fb9b Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Mon, 18 Jan 2016 16:28:05 -0800 Subject: [PATCH] - try to fix auto_ptr proxy for msvc --- .../include/platform/common/common_scoped_ptr.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/include/platform/common/common_scoped_ptr.h b/source/shared_lib/include/platform/common/common_scoped_ptr.h index 891465530..dcdc4bb55 100644 --- a/source/shared_lib/include/platform/common/common_scoped_ptr.h +++ b/source/shared_lib/include/platform/common/common_scoped_ptr.h @@ -21,8 +21,12 @@ // C++11 #if defined(HAVE_CXX11) || (__cplusplus >= 201103L) || (_MSC_VER >= 1900) - -#define auto_ptr std::unique_ptr + +#if defined(WIN32) +#define auto_ptr unique_ptr +#else + #define auto_ptr std::unique_ptr +#endif #endif