From 12f734d7a016379f03d444eb799499e742f2f680 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Fri, 1 Aug 2014 20:28:52 -0700 Subject: [PATCH] VC++ has std::make_unique. --- src/poly/cxx_compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/poly/cxx_compat.h b/src/poly/cxx_compat.h index fa471eca0..fd0f26d81 100644 --- a/src/poly/cxx_compat.h +++ b/src/poly/cxx_compat.h @@ -32,6 +32,7 @@ #define alignas(N) __declspec(align(N)) #endif // XE_COMPILER_MSVC +#if !XE_COMPILER_MSVC // C++1y make_unique. // http://herbsutter.com/2013/05/29/gotw-89-solution-smart-pointers/ // This is present in clang with -std=c++1y, but not otherwise. @@ -41,6 +42,7 @@ unique_ptr make_unique(Args&&... args) { return unique_ptr(new T(forward(args)...)); } } // namespace std +#endif // !XE_COMPILER_MSVC namespace poly {} // namespace poly