diff --git a/src/TNL/Config/ConfigDescription.h b/src/TNL/Config/ConfigDescription.h index dc32c16840d1b0d8f1e7d479942de1e32f01fa19..06ed1ba8a089c3ceed5d4e09966807fb370eaa0f 100644 --- a/src/TNL/Config/ConfigDescription.h +++ b/src/TNL/Config/ConfigDescription.h @@ -14,7 +14,6 @@ #include <string> #include <vector> #include <memory> -#include "make_unique.h" #include <TNL/Assert.h> #include <TNL/String.h> diff --git a/src/TNL/Config/ParameterContainer.h b/src/TNL/Config/ParameterContainer.h index b298234d836188e316d93b87bcb0bf69e09afb1d..b8315d3ecb558a053ea86f3ff963c26bb42cec04 100644 --- a/src/TNL/Config/ParameterContainer.h +++ b/src/TNL/Config/ParameterContainer.h @@ -12,7 +12,6 @@ #include <vector> #include <memory> -#include "make_unique.h" #include <TNL/param-types.h> //#include <TNL/Debugging/StackBacktrace.h> diff --git a/src/TNL/Config/make_unique.h b/src/TNL/Config/make_unique.h deleted file mode 100644 index 4a4078a028e2c1cb9feec357080d20bc3f05454b..0000000000000000000000000000000000000000 --- a/src/TNL/Config/make_unique.h +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -// std::make_unique does not exist until C++14 -// https://stackoverflow.com/a/9657991 -#if __cplusplus < 201402L -#include <memory> - -namespace std { - template<typename T, typename ...Args> - std::unique_ptr<T> make_unique( Args&& ...args ) - { - return std::unique_ptr<T>( new T( std::forward<Args>(args)... ) ); - } -} -#endif