diff options
author | Naios <naios-dev@live.de> | 2017-12-08 04:01:58 +0100 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2017-12-20 04:04:27 +0100 |
commit | a8813fc6fea2d9b28766ab9dbf1085b2644729fc (patch) | |
tree | a2c86ba6faf8568c41a1be63cbdc1f13340107ed /src | |
parent | ad3e16c24e3fd8db8c316b952facc3b97b4f2eee (diff) |
Core/Common: Use the std make_unique instead of a custom one
(cherry picked from commit ca023fd60aa7e75987c93b776c309e0d81931bd8)
Diffstat (limited to 'src')
-rw-r--r-- | src/common/Common.h | 7 |
1 files changed, 1 insertions, 6 deletions
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<typename T, typename ...Args> - std::unique_ptr<T> make_unique(Args&& ...args) - { - return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); - } + using std::make_unique; } #endif |