22 May
2018
22 May
'18
1:02 a.m.
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.