title: How to sort with a lambda?
body: <pre><code>sort(mMyClassVector.begin(), mMyClassVector.end(), 
      [](const MyClass &amp; a, const MyClass &amp; b)
  { 
      return a.mProperty &gt; b.mProperty; 
  });
  </code></pre>
  
  <p>I'd like to use a lambda function to sort custom classes in place of binding an instance method. However, the code above yields the error:</p>
  
  <blockquote>
    <p>error C2564: 'const char *' : a function-style conversion to a built-in type can only take one argument</p>
  </blockquote>
  
  <p>It works fine with <code>boost::bind(&amp;MyApp::myMethod, this, _1, _2)</code>.</p>