aboutsummaryrefslogtreecommitdiff
path: root/src/common/Common.h
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2017-12-08 04:01:58 +0100
committerNaios <naios-dev@live.de>2017-12-20 04:04:27 +0100
commita8813fc6fea2d9b28766ab9dbf1085b2644729fc (patch)
treea2c86ba6faf8568c41a1be63cbdc1f13340107ed /src/common/Common.h
parentad3e16c24e3fd8db8c316b952facc3b97b4f2eee (diff)
Core/Common: Use the std make_unique instead of a custom one
(cherry picked from commit ca023fd60aa7e75987c93b776c309e0d81931bd8)
Diffstat (limited to 'src/common/Common.h')
-rw-r--r--src/common/Common.h7
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