diff --git a/src/common/Common.h b/src/common/Common.h index 78b7df6a895..3d853d05731 100644 --- a/src/common/Common.h +++ b/src/common/Common.h @@ -122,24 +122,7 @@ TC_COMMON_API LocaleConstant GetLocaleByName(std::string const& name); namespace Trinity { - //! std::make_unique implementation (TODO: remove this once C++14 is supported) - template - inline auto make_unique(Args&& ...args) -> - typename std::enable_if::value, std::unique_ptr>::type - { - return std::unique_ptr(new T(std::forward(args)...)); - } - - template - inline auto make_unique(std::size_t size) -> - typename std::enable_if::value && std::extent::value == 0, std::unique_ptr>::type - { - return std::unique_ptr(new typename std::remove_extent::type[size]()); - } - - template - inline auto make_unique(Args&&...) -> - typename std::enable_if::value != 0, void>::type = delete; + using std::make_unique; } #endif