title: Can two booleans be compared in C++?
body: <p>Is the following piece of code supposed to work?</p>
  
  <pre><code>bool b1 = true;
  bool b2 = 1 &lt; 2;
  if (b1 == b2)
  {
  // do something
  }
  </code></pre>
  
  <p>I suspect that not all 'trues' are equal.</p>