From b760e11d5f9f4d25919a566ef727164da4376062 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 4 Jun 2021 19:19:58 -0400 Subject: Switch to C++14 and fix build with GCC 10 GCC was having problems with this make_unique overload, but I don't care about C++11 compatibility at this point anyway, so it's easiest to just remove it. --- include/ingen/memory.hpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include/ingen') diff --git a/include/ingen/memory.hpp b/include/ingen/memory.hpp index 82e98bdf..6a62d317 100644 --- a/include/ingen/memory.hpp +++ b/include/ingen/memory.hpp @@ -29,13 +29,6 @@ void NullDeleter(T* ptr) {} template struct FreeDeleter { void operator()(T* const ptr) { free(ptr); } }; -template -std::unique_ptr -make_unique(Args&&... args) -{ - return std::unique_ptr{new T{std::forward(args)...}}; -} - } // namespace ingen #endif // INGEN_MEMORY_HPP -- cgit v1.2.1