Quote Originally Posted by laserlight View Post
Yes, assuming that the left hand expression is an rvalue or const. However, because this does not map to the usual way one would say it, I would argue that this would then make it harder "to read if you're skimming through the code quickly".

Basically, I see no advantage to comparing to a boolean literal. If the variable is not a bool, and you want to be explicit about it, then compare with an appropriate value (e.g., zero), or call an appropriate named function (e.g., use the fail() member function of an input stream instead of relying on an implicit conversion). In that sense, I see some value with comparing a pointer with a null pointer constant.
I did not say I used this form. It feels backwards to me and I wouldn't use it. Just felt like mentioning the alternative.