summaryrefslogtreecommitdiffstats
path: root/Source/Checks
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-28 13:50:18 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-28 13:50:18 (GMT)
commitb8018135b5729b5c74a0c95ab2b8cc8677fbe5b8 (patch)
treed4c9f1bf34bcfc2e6094e0a84def5ea249cf0b78 /Source/Checks
parent42f4e6974c99cfdd6727f2fcd35c83f431ab10a5 (diff)
downloadCMake-b8018135b5729b5c74a0c95ab2b8cc8677fbe5b8.zip
CMake-b8018135b5729b5c74a0c95ab2b8cc8677fbe5b8.tar.gz
CMake-b8018135b5729b5c74a0c95ab2b8cc8677fbe5b8.tar.bz2
Use C++11 '= delete' instead of CM_EQ_DELETE
We now require C++11 support including `= delete`. Drop use of the old compatibility macro.
Diffstat (limited to 'Source/Checks')
-rw-r--r--Source/Checks/cm_cxx_eq_delete.cxx14
-rw-r--r--Source/Checks/cm_cxx_features.cmake1
2 files changed, 0 insertions, 15 deletions
diff --git a/Source/Checks/cm_cxx_eq_delete.cxx b/Source/Checks/cm_cxx_eq_delete.cxx
deleted file mode 100644
index 809e4cf..0000000
--- a/Source/Checks/cm_cxx_eq_delete.cxx
+++ /dev/null
@@ -1,14 +0,0 @@
-struct Foo
-{
- Foo() {}
- ~Foo() {}
- Foo(Foo const&) = delete;
- Foo& operator=(Foo const&) = delete;
- int test() const { return 0; }
-};
-
-int main()
-{
- Foo const foo;
- return foo.test();
-}
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
index 7755cfe..a30a5e6 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(eq_delete)
cm_check_cxx_feature(fallthrough)
if(NOT CMake_HAVE_CXX_FALLTHROUGH)
cm_check_cxx_feature(gnu_fallthrough)