title: Using boost to create a lambda function which always returns true
body: <p>Suppose I have a function which takes some form of predicate:</p>
  
  <pre><code>void Foo( boost::function&lt;bool(int,int,int)&gt; predicate );
  </code></pre>
  
  <p>If I want to call it with a predicate that always returns true, I can define a helper function:</p>
  
  <pre><code>bool AlwaysTrue( int, int, int ) { return true; }
  ...
  Foo( boost::bind( AlwaysTrue ) );
  </code></pre>
  
  <p>But is there anyway to call this function (possibly using boost::lambda) without having to define a separate function?</p>
  
  <p><em>[Edit: forgot to say: I CAN'T use C++0x]</em></p>