title: no matching function for call to boost::condition_variable::wait
body: <p>This is my scenario</p>
  
  <pre><code>boost::condition_variable        _condition;
  boost::unique_lock&lt;boost::mutex&gt; lock(_mutex);
  boost::detail::atomic_count      _count;
  .........
  _condition.wait(&amp;lock, boost::bind(std::less&lt;int&gt;(), boost::ref(_count), max));
  </code></pre>
  
  <p>Getting error</p>
  
  <pre><code>error: no matching function for call to 'boost::condition_variable::wait(boost::unique_lock&lt;boost::mutex&gt;*, boost::_bi::bind_t&lt;boost::_bi::unspecified, std::less&lt;int&gt;, boost::_bi::list2&lt;boost::reference_wrapper&lt;boost::detail::atomic_count&gt;, boost::_bi::value&lt;short unsigned int&gt; &gt; &gt;)'
  </code></pre>
  
  <p>Where is the problem ?</p>