title: C++ How to store a parameter pack as a variable
body: <p>At the moment I am having trouble trying to store a parameter pack, this is example code of the design:</p>
  
  <pre><code>template&lt;typename Func, typename... Args&gt;
  void handleFunc(Func func, Args&amp;&amp;... args) {
      struct nest {
          Func nestFunc;
          Args... nestArgs; // I DONT KNOW WHAT TO DO HERE
          void setup(Func func, Args... args) {
              nestFunc = func;
              nestArgs = (args)...; // SO I CAN SET IT HERE
          }
          // Later I will forward this and run the function with its arguments
          unsigned process() {
              nestFunc(std::forward&lt;Args&gt;(nestArgs)...); // USE IT HERE
              return 0;
          }
      };
      nest* myNest;
      myNest-&gt;setup(func, (args)...);
  }
  </code></pre>
  
  <p>This is an example of everything involved for the problem, I need to store the arguments for <strong>later</strong> invoke in my nest struct. Also, if you have a solution to store it but to set it is different to mine, please also let me know about that too. Thanks.</p>