title: Can I add class template to tuple?
body: <p>I'm trying to add class template to tuple</p>
  <p>These are my classes:</p>
  <pre><code>class Parent {
    // ...
  }
  
  class Child1 : public Parent {
    // ...
  }
  
  class Child2 : public Parent {
    // ...
  }
  </code></pre>
  <p>My purpose is to add class like this way:</p>
  <pre><code>v.push_back({&quot;child1&quot;, Child1});
  </code></pre>
  <p>so that I can save class template to create an object like this way:</p>
  <pre><code>Parent *obj = new v[0][1]();
  </code></pre>
  <p>which should work like this:</p>
  <pre><code>Parent *obj = new Child1();
  </code></pre>
  <p>I trid this:</p>
  <pre><code>std::vector&lt;std::tuple&lt;std::string, template&lt;class T&gt;&gt;&gt; v;
  </code></pre>
  <p>to add template to tuple.</p>
  <p>How can I make it work?</p>