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

(cherry picked from commit ca023fd60a)
This commit is contained in:
Naios
2017-12-08 04:01:58 +01:00
parent ad3e16c24e
commit a8813fc6fe

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