diff options
Diffstat (limited to 'Source/cm_memory.hxx')
-rw-r--r-- | Source/cm_memory.hxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Source/cm_memory.hxx b/Source/cm_memory.hxx deleted file mode 100644 index 9f5e678..0000000 --- a/Source/cm_memory.hxx +++ /dev/null @@ -1,31 +0,0 @@ -/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying - file Copyright.txt or https://cmake.org/licensing for details. */ -#ifndef cm_memory_hxx -#define cm_memory_hxx - -#include "cmConfigure.h" // IWYU pragma: keep - -#include <memory> // IWYU pragma: export -#if !defined(CMake_HAVE_CXX_MAKE_UNIQUE) -# include <utility> -#endif - -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 - -} // namespace cm - -#endif |