title: An old issue on bind1st with men_fun in C++ STL
body: <p>Some simple code will demonstrate the problem:</p>
  
  <pre><code>class Foo {};
  struct Bar {
      bool foo(const Foo &amp;f) const { return false; }
  };
  
  int main() {
      Bar bar;
  
      vector&lt;Foo&gt; v;
  
      std::find_if(v.begin(), v.end(), std::bind1st(
          std::mem_fun_ref(&amp;Bar::foo), bar));
  
      return 0;
  }
  </code></pre>
  
  <p>Now, for this code, the VS2010 c++ compiler will complain: 
  error C2535: bool std::binder1st&lt;_Fn2>::operator()(const Foo&amp;) const: 
  member function already defined of declared</p>
  
  <p>On earlier versions of Visual Studio, there would be two more compilation errors which are related to reference to reference issues. While these problems have gone in VS2010, the C2535 remains.</p>
  
  <p>This question is similar to <a href="https://stackoverflow.com/questions/6065041/error-c2064-term-does-not-evaluate-to-a-function-taking-1-arguments">this one</a>. As suggested by that post, i can use std::bind, or the boost library as alternatives. They work fine, but for now, i'd like to know is it possible to use the old bind1st style in this case, or is this problem more of a defect inherent in the STL functional framework?
  Thanks!</p>