diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-07-02 09:08:04 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2019-07-14 13:37:30 (GMT) |
commit | d9b2c7dae242868f13fc366773fb09448da26e8d (patch) | |
tree | 12e97152327bdff419861deded5b2f7d6a0961be /Source/cmAlgorithms.h | |
parent | 81389a5e8f14a09d26a8efb22fd12063168caba6 (diff) | |
download | CMake-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.h | 15 |
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; |