From 9ce182228d8be25130f3f18b2d999a9612fb18f9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 22 Mar 2020 08:51:06 -0700 Subject: Avoid some pre-C++14 workarounds --- common/almalloc.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'common') 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 -std::unique_ptr make_unique(ArgsT&&...args) -{ return std::unique_ptr{new T{std::forward(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. -- cgit v1.2.3