title: Using bitwise operators for Booleans in C++
body: <p>Is there any reason not to use the bitwise operators &amp;, |, and ^ for "bool" values in C++? </p>
  
  <p>I sometimes run into situations where I want exactly one of two conditions to be true (XOR), so I just throw the ^ operator into a conditional expression. I also sometimes want all parts of a condition to be evaluated whether the result is true or not (rather than short-circuiting), so I use &amp; and |. I also need to accumulate Boolean values sometimes, and &amp;= and |= can be quite useful.</p>
  
  <p>I've gotten a few raised eyebrows when doing this, but the code is still meaningful and cleaner than it would be otherwise. Is there any reason NOT to use these for bools? Are there any modern compilers that give bad results for this?</p>