diff options
author | David Robillard <d@drobilla.net> | 2021-06-04 19:19:58 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-06-04 19:19:58 -0400 |
commit | b760e11d5f9f4d25919a566ef727164da4376062 (patch) | |
tree | 6ade88a43041b62b03247bb73b73a481c7931053 /include/ingen | |
parent | fef4ce2b39b1a00609122fe37e2378be2fa9319f (diff) | |
download | ingen-b760e11d5f9f4d25919a566ef727164da4376062.tar.gz ingen-b760e11d5f9f4d25919a566ef727164da4376062.tar.bz2 ingen-b760e11d5f9f4d25919a566ef727164da4376062.zip |
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.
Diffstat (limited to 'include/ingen')
-rw-r--r-- | include/ingen/memory.hpp | 7 |
1 files changed, 0 insertions, 7 deletions
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 <class T> struct FreeDeleter { void operator()(T* const ptr) { free(ptr); } }; -template <typename T, typename... Args> -std::unique_ptr<T> -make_unique(Args&&... args) -{ - return std::unique_ptr<T>{new T{std::forward<Args>(args)...}}; -} - } // namespace ingen #endif // INGEN_MEMORY_HPP |