mention the explicit bool conversion from C++11 for pointer-to-bool check

Change-Id: I050019b30d2ec96bbd25916624f8cb88d72110e4
This commit is contained in:
Luboš Luňák
2013-07-16 15:30:04 +02:00
parent c66e9cd24c
commit c17c8cc029

View File

@@ -26,9 +26,10 @@ and potentially mistakes.
So far the only places that are checked are passing arguments to functions, as those
could easily choose a different overload.
The original idea was that the only conversions that are considered safe are
in conditions (which in turn means also in ||, && and ! operators) and places
where it's considered unlikely for it to be a problem (or rather, less of a problem
The original idea was that to follow the explicit bool feature from C++11, where
the only conversions that would be considered safe are in conditions (which
in turn means also in ||, && and ! operators) and places where it's considered
unlikely for it to be a problem (or rather, less of a problem
than explicitly avoiding the warning in the code). The code for this is currently
commented out (there are a couple of places such as 'bool foo = returns_pointer();'
that would need modification), possibly enable those later.