3 ms·
> 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
by dataflow 5y ago
> 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++.
- thaumasiotes 5y agoI'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
- dataflow 5y agoThat has nothing to do with the standard though? The behavior is well-defined, it's just compilers warning about use of & tending to be error-prone (rightly or wrongly).