Jon Grant <[email protected]> writes: > Currently gcc, and g++ don't give a warning when a pointer was > converted to a bool, in the same way it is for other types.
There is a lot of code which uses
if (p)
where p is a pointer to test whether p is not NULL. I don't think we
could reasonably have gcc warn about such a case.
We might be able to separate out conversion to bool on assignment from
conversion to bool in a test, though.
Ian
