From 203ee514b4bc3d9580f5836f8f993ebef878a072 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkovsky@mmg.fjfi.cvut.cz>
Date: Tue, 20 Aug 2019 19:59:05 +0200
Subject: [PATCH] Removed custom implementation of std::make_unique which is
 available in STL since C++14

---
 src/TNL/Config/ConfigDescription.h  |  1 -
 src/TNL/Config/ParameterContainer.h |  1 -
 src/TNL/Config/make_unique.h        | 15 ---------------
 3 files changed, 17 deletions(-)
 delete mode 100644 src/TNL/Config/make_unique.h

diff --git a/src/TNL/Config/ConfigDescription.h b/src/TNL/Config/ConfigDescription.h
index dc32c16840..06ed1ba8a0 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 b298234d83..b8315d3ecb 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 4a4078a028..0000000000
--- 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
-- 
GitLab