title: Is it possible to store in a container a member overload?
body: <p>My question is simple, yet the solution is not obvious to me.</p>
  
  <p>I want to get an overload set (macros allowed in case I need) into a container. The overloaded functions are member functions. I want something like this:</p>
  
  <pre><code>std::function&lt;void (MyClass &amp;, std::string const &amp;)&gt; myFuncs = 
  {&amp;MyClass::f1, &amp;MyClass::f2};
  </code></pre>
  
  <p>I tried several things I will not post the code for right now, but basically, I want that to work even if I need an overload for lifting the overload set into a functor. I know how to do that with free functions but I am failing to do it for member functions. Any idea if this is possible in a generic way?</p>