From 9e0362caa1f838579b6c863b44e311972c3c95ae Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 27 Sep 2017 07:28:24 -0400 Subject: Remove checks for auto_ptr that we no longer need We no longer use `auto_ptr` at all, so drop the checks for it. --- Source/Checks/cm_cxx_auto_ptr.cxx | 18 ------------------ Source/Checks/cm_cxx_features.cmake | 1 - Source/cmConfigure.cmake.h.in | 1 - 3 files changed, 20 deletions(-) delete mode 100644 Source/Checks/cm_cxx_auto_ptr.cxx diff --git a/Source/Checks/cm_cxx_auto_ptr.cxx b/Source/Checks/cm_cxx_auto_ptr.cxx deleted file mode 100644 index d3100fd..0000000 --- a/Source/Checks/cm_cxx_auto_ptr.cxx +++ /dev/null @@ -1,18 +0,0 @@ -#include - -std::auto_ptr get_auto_ptr() -{ - std::auto_ptr ptr; - ptr = std::auto_ptr(new int(0)); - return ptr; -} - -int use_auto_ptr(std::auto_ptr ptr) -{ - return *ptr; -} - -int main() -{ - return use_auto_ptr(get_auto_ptr()); -} diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake index 2c39cbe..7755cfe 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -41,7 +41,6 @@ function(cm_check_cxx_feature name) endif() endfunction() -cm_check_cxx_feature(auto_ptr) cm_check_cxx_feature(eq_delete) cm_check_cxx_feature(fallthrough) if(NOT CMake_HAVE_CXX_FALLTHROUGH) diff --git a/Source/cmConfigure.cmake.h.in b/Source/cmConfigure.cmake.h.in index 9d11fff..f4e5fb8 100644 --- a/Source/cmConfigure.cmake.h.in +++ b/Source/cmConfigure.cmake.h.in @@ -19,7 +19,6 @@ #cmakedefine HAVE_UNSETENV #cmakedefine CMAKE_USE_ELF_PARSER #cmakedefine CMAKE_USE_MACH_PARSER -#cmakedefine CMake_HAVE_CXX_AUTO_PTR #cmakedefine CMake_HAVE_CXX_EQ_DELETE #cmakedefine CMake_HAVE_CXX_FALLTHROUGH #cmakedefine CMake_HAVE_CXX_GNU_FALLTHROUGH -- cgit v0.12