diff --git a/src/a2functional.h b/src/a2functional.h index a99af0dc7..c1059fef3 100644 --- a/src/a2functional.h +++ b/src/a2functional.h @@ -150,6 +150,9 @@ struct RefLess { } }; +#if __cplusplus > 201103L +using std::make_unique; +#else // __cplusplus <= 201103L template typename std::enable_if::value, std::unique_ptr>::type make_unique(U&&... u) @@ -163,6 +166,7 @@ make_unique(size_t size) { return std::unique_ptr(new typename std::remove_extent::type[size]()); } +#endif // __cplusplus <= 201103L // User-defined literals for K, M, and G (powers of 1024)