Re:Google broke a conditional statement that verifies passwo...
by dataflow on Thursday July 22, 2021 @11:08PM
(#27926751)
> I really do wonder why the standard doesn't just specify the behavior of bool & bool.
Confused about your question. Did you have a typo? bool & bool is valid in C++.
Re:Google broke a conditional statement that verifies passwo...
by thaumasiotes on Friday July 23, 2021 @01:42AM
(#27927591)
I'm guessing the question is related to this complaint:
> What I would like to write in unit tests:
> ok &= check(x);
> That gets you angry messages from static analysis
I really do wonder why the standard doesn't just specify the behavior of bool & bool. Is it just because of holdover from C?