瀏覽代碼

Remove checks for auto_ptr that we no longer need

We no longer use `auto_ptr` at all, so drop the checks for it.
Brad King 8 年之前
父節點
當前提交
9e0362caa1
共有 3 個文件被更改,包括 0 次插入20 次删除
  1. 0 18
      Source/Checks/cm_cxx_auto_ptr.cxx
  2. 0 1
      Source/Checks/cm_cxx_features.cmake
  3. 0 1
      Source/cmConfigure.cmake.h.in

+ 0 - 18
Source/Checks/cm_cxx_auto_ptr.cxx

@@ -1,18 +0,0 @@
-#include <memory>
-
-std::auto_ptr<int> get_auto_ptr()
-{
-  std::auto_ptr<int> ptr;
-  ptr = std::auto_ptr<int>(new int(0));
-  return ptr;
-}
-
-int use_auto_ptr(std::auto_ptr<int> ptr)
-{
-  return *ptr;
-}
-
-int main()
-{
-  return use_auto_ptr(get_auto_ptr());
-}

+ 0 - 1
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)

+ 0 - 1
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