GCC-6 doesn't allow implicit cast from bool to pointer
Status: Beta
Brought to you by:
gabortorok
Compiling with GCC-6 fails with messages like:
map.cpp:3157:10: error: cannot convert ‘bool’ to ‘Shape*’ in return return false; ^~~~~
Boolean false
can no longer be implicitly casted to a NULL
pointer. Using NULL
insead of false
is a C++ dialect and compiler neutral solution.