From a8813fc6fea2d9b28766ab9dbf1085b2644729fc Mon Sep 17 00:00:00 2001 From: Naios Date: Fri, 8 Dec 2017 04:01:58 +0100 Subject: Core/Common: Use the std make_unique instead of a custom one (cherry picked from commit ca023fd60aa7e75987c93b776c309e0d81931bd8) --- src/common/Common.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/common') diff --git a/src/common/Common.h b/src/common/Common.h index e33210ecd3b..3010a486506 100644 --- a/src/common/Common.h +++ b/src/common/Common.h @@ -132,12 +132,7 @@ struct TC_COMMON_API LocalizedString namespace Trinity { - //! std::make_unique implementation (TODO: remove this once C++14 is supported) - template - std::unique_ptr make_unique(Args&& ...args) - { - return std::unique_ptr(new T(std::forward(args)...)); - } + using std::make_unique; } #endif -- cgit v1.2.3