Should I use "int" or "bool" as a return value in C++?
<p>If I have a function that performs some procedure and then needs to return the truth value of something is there a compelling reason to use either a boolean variable, or an int variable, as the return type?  </p>

<pre><code>bool Foo()
{
  ...
  ...
  return truthValue;
}

int Foo()
{
  ...
  ...
  return truthValue;
}
</code></pre>

<p>Is there an appreciable difference between these two functions?  What are some potential pitfalls and advantages to both of them?</p>

<p>thanks,</p>

<p>nmr</p>
