diff --git a/src/util/memory.h b/src/util/memory.h index 15ecf8f80d..4d73b32869 100644 --- a/src/util/memory.h +++ b/src/util/memory.h @@ -10,10 +10,11 @@ #include //! Substitute for C++14 std::make_unique. +//! DEPRECATED use std::make_unique in new code. template std::unique_ptr MakeUnique(Args&&... args) { - return std::unique_ptr(new T(std::forward(args)...)); + return std::make_unique(std::forward(args)...); } #endif