title: binding member functions in a variadic fashion
body: <p>I have a member function with a variable number of parameters, stored in a <code>std::function</code>, and I want to bind the instance and get an independent function object.</p>
  
  <pre><code>template &lt;class T, class R, class... Args&gt;
  void connect(const T&amp; t, std::function&lt;R(const T&amp;, Args...)&gt; f) {
    std::function&lt;R(Args...)&gt; = /* bind the instance c into the function? */
  }
  
  // ...
  
  Class c;
  connect(c, &amp;Class::foo);
  </code></pre>
  
  <p>For a fixed number of arguments I'd use <code>std::bind</code>, but I don't see how to do this for variadic parameters.</p>