It would be better to say that, when converted to bool, zero evaluates to false and a null pointer evaluates to false.Originally Posted by Elysia
There is a conversion from std::nullptr_t to bool, and "the operand of the logical negation operator ! is contextually converted to bool". Therefore, !nullptr should be valid, with a value of true.Originally Posted by Elysia



5Likes
LinkBack URL
About LinkBacks



