|
Boost : |
From: Ruben Perez (rubenperez038_at_[hidden])
Date: 2021-03-12 17:08:45
On Fri, 12 Mar 2021, 14:18 Rainer Deyke via Boost, <boost_at_[hidden]>
wrote:
> 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_at_[hidden])
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk