summaryrefslogtreecommitdiffstats
path: root/Source/cmAlgorithms.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-07-02 09:08:04 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2019-07-14 13:37:30 (GMT)
commitd9b2c7dae242868f13fc366773fb09448da26e8d (patch)
tree12e97152327bdff419861deded5b2f7d6a0961be /Source/cmAlgorithms.h
parent81389a5e8f14a09d26a8efb22fd12063168caba6 (diff)
downloadCMake-d9b2c7dae242868f13fc366773fb09448da26e8d.zip
CMake-d9b2c7dae242868f13fc366773fb09448da26e8d.tar.gz
CMake-d9b2c7dae242868f13fc366773fb09448da26e8d.tar.bz2
Introduce memory management helper: cm_memory.hxx
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r--Source/cmAlgorithms.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h
index d1e32b0..d153076 100644
--- a/Source/cmAlgorithms.h
+++ b/Source/cmAlgorithms.h
@@ -11,7 +11,6 @@
#include <algorithm>
#include <functional>
#include <iterator>
-#include <memory>
#include <sstream>
#include <string.h>
#include <string>
@@ -340,20 +339,6 @@ inline void cmStripSuffixIfExists(std::string& str, const std::string& suffix)
namespace cm {
-#if defined(CMake_HAVE_CXX_MAKE_UNIQUE)
-
-using std::make_unique;
-
-#else
-
-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
-
#if __cplusplus >= 201703L || defined(_MSVC_LANG) && _MSVC_LANG >= 201703L
using std::size;