diff options
author | Roman Wüger <roman.wueger@gmx.at> | 2015-03-13 08:18:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-17 17:46:43 (GMT) |
commit | f9d09626899a8196a2f46992585ddff21fd2de34 (patch) | |
tree | 8852dc306c31d35487e6d66f944234dca6d9ace3 /Modules | |
parent | a5cab2e7391df8d2072f1083c075a69bc746c7aa (diff) | |
download | CMake-f9d09626899a8196a2f46992585ddff21fd2de34.zip CMake-f9d09626899a8196a2f46992585ddff21fd2de34.tar.gz CMake-f9d09626899a8196a2f46992585ddff21fd2de34.tar.bz2 |
WCDH: Fix cxx_nullptr workaround for pre-C++11 compilers
Use just '0' instead of 'static_cast<void*>(0)' because the latter
will not automatically convert to pointers to other types.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/WriteCompilerDetectionHeader.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/WriteCompilerDetectionHeader.cmake b/Modules/WriteCompilerDetectionHeader.cmake index d18f47c..f4dcb21 100644 --- a/Modules/WriteCompilerDetectionHeader.cmake +++ b/Modules/WriteCompilerDetectionHeader.cmake @@ -586,7 +586,7 @@ function(write_compiler_detection_header # if ${def_name} # define ${def_value} nullptr # else -# define ${def_value} static_cast<void*>(0) +# define ${def_value} 0 # endif \n") endif() |