M
MikeP
Why can bool types be implicitly converted to ints? Wouldn't it be better
if a bool was a bool was a bool was a bool...? The complementary question
is also a curiosity: why can an int be converted to a bool? I think the
answer to the last question has to do with "trueness" in C++ historically
meaning "not zero" instead of meaning "one".
if a bool was a bool was a bool was a bool...? The complementary question
is also a curiosity: why can an int be converted to a bool? I think the
answer to the last question has to do with "trueness" in C++ historically
meaning "not zero" instead of meaning "one".