12 Mar
2021
12 Mar
'21
5:08 p.m.
On Fri, 12 Mar 2021, 14:18 Rainer Deyke via Boost,
On 10.03.21 16:34, Richard Hodges via Boost wrote:
In almost all applications, "1", 1 and true all mean the same thing.
Absolutely not. Strings are not, and must not be implicitly converted to, booleans.
"True" is a perfectly valid last name, as is "Null". There are real people with these names. Software that treats these names as a boolean value and no value respectively is broken.
I agree, and this library will never do that - "True" is always considered to be a string and does not convert to bool.
-- Rainer Deyke (rainerd@eldwood.com)
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost