Core/Common: Use the std make_unique instead of a custom one

(cherry picked from commit ca023fd60aa7e75987c93b776c309e0d81931bd8)
This commit is contained in:
Naios
2017-12-20 04:04:27 +01:00
parent ad3e16c24e
commit a8813fc6fe
+1 -6
View File
@@ -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