mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
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.
This commit is contained in:
1 parent
a5cab2e739
commit
f9d0962689
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user