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:
parent
a5cab2e739
commit
f9d0962689
|
@ -586,7 +586,7 @@ function(write_compiler_detection_header
|
||||||
# if ${def_name}
|
# if ${def_name}
|
||||||
# define ${def_value} nullptr
|
# define ${def_value} nullptr
|
||||||
# else
|
# else
|
||||||
# define ${def_value} static_cast<void*>(0)
|
# define ${def_value} 0
|
||||||
# endif
|
# endif
|
||||||
\n")
|
\n")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue