Core/Common: Use the std make_unique instead of a custom one
(cherry picked from commit ca023fd60aa7e75987c93b776c309e0d81931bd8)
This commit is contained in:
+1
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user