From 5962db438939ef2754509b8578af1f845ec07dc8 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Tue, 22 Aug 2017 23:42:36 +0200 Subject: Use C++11 nullptr --- Source/Checks/cm_cxx_features.cmake | 1 - Source/Checks/cm_cxx_nullptr.cxx | 14 -------------- 2 files changed, 15 deletions(-) delete mode 100644 Source/Checks/cm_cxx_nullptr.cxx (limited to 'Source/Checks') diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake index e75a7ef820..7f2b8a0c10 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -51,6 +51,5 @@ cm_check_cxx_feature(make_unique) if(CMake_HAVE_CXX_MAKE_UNIQUE) set(CMake_HAVE_CXX_UNIQUE_PTR 1) endif() -cm_check_cxx_feature(nullptr) cm_check_cxx_feature(override) cm_check_cxx_feature(unique_ptr) diff --git a/Source/Checks/cm_cxx_nullptr.cxx b/Source/Checks/cm_cxx_nullptr.cxx deleted file mode 100644 index 500684aee9..0000000000 --- a/Source/Checks/cm_cxx_nullptr.cxx +++ /dev/null @@ -1,14 +0,0 @@ -int test(int) -{ - return -1; -} - -int test(int*) -{ - return 0; -} - -int main() -{ - return test(nullptr); -} -- cgit v1.2.1