title: How to use 'auto' for declaring a pointer to an overloaded member function?
body: <p>If I have an overloaded non-static member function, how can I use <code>auto</code> to declare a pointer for one version of that function?</p>
  <pre><code>struct Foo{
     void bar(){}
     void bar(int){}
  };
  
  auto ptr = &amp;Foo::bar; // error: unable to deduce 'auto' from '&amp;Foo::bar'
  </code></pre>