Subject: Re: [boost] PR: Remove safe_bool idiom from boost.tribool
From: Peter Dimov (lists_at_[hidden])
Date: 2018-05-22 01:02:13
Robert Ramey wrote:
> > I'm strongly opposed to downgrading from safe_bool to implicit bool.
> I made my argument why this is good idea. What's wrong with my argument?
Defining a conversion to bool enables unwanted operations such as
tribool b1, b2;
b1 < b2;
b1 + b2;
b1 + 5;
b1 * 2;
That's the whole point of "safe bool", to avoid those.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk