diff options
author | Chris Robinson <[email protected]> | 2020-03-22 08:51:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-03-22 08:51:06 -0700 |
commit | 9ce182228d8be25130f3f18b2d999a9612fb18f9 (patch) | |
tree | 7b45245f55a4e77dd08d6b13faa67916f5caa285 /common/almalloc.h | |
parent | 040309b9f402f9629e1a553665ce789bd530dec2 (diff) |
Avoid some pre-C++14 workarounds
Diffstat (limited to 'common/almalloc.h')
-rw-r--r-- | common/almalloc.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/common/almalloc.h b/common/almalloc.h index 1a1e2557..804ea9d8 100644 --- a/common/almalloc.h +++ b/common/almalloc.h @@ -216,14 +216,6 @@ inline T1 uninitialized_move_n(T0 first, N count, const T1 output) } -/* std::make_unique was added with C++14, so until we rely on that, make our - * own version. - */ -template<typename T, typename ...ArgsT> -std::unique_ptr<T> make_unique(ArgsT&&...args) -{ return std::unique_ptr<T>{new T{std::forward<ArgsT>(args)...}}; } - - /* A flexible array type. Used either standalone or at the end of a parent * struct, with placement new, to have a run-time-sized array that's embedded * with its size. |