title: Is there a way to expand and call a tuple of std::functions?
body: <p>I have a class containing a tuple of functions, with their return types determined by the template of the class:</p>
  
  <pre><code>template &lt;typename... Ts&gt;
  class A{
      static inline auto funcs = std::make_tuple(std::function&lt;Ts()&gt;()...)
  };
  </code></pre>
  
  <p>I would like to be able to iterate over these functions. I tried getting the indexes of each type from the template using the method from this answer: <a href="https://stackoverflow.com/a/26169248/">https://stackoverflow.com/a/26169248/</a></p>
  
  <pre><code>std::get&lt;Index&lt;Ts,Ts...&gt;::value&gt;(funcs)()...;
  </code></pre>
  
  <p>But this code doesn't compile. It complains about the "..." at the end, possibly because the template parameter pack was already expanded when I typed "T...", but I don't see why it won't let me expand the other "Ts". Is there a way to do this?</p>