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.