title: std::map of string <-> function pairs where function has template argument
body: <p>I'm trying to create a map of string to function pointers, but with a twist-- the functions have a template argument. Here's what I tried:</p>
  
  <pre><code>template &lt;typename T&gt;
  using func = void (*) (T);
  
  std::map&lt;std::string, func&gt; funcMap;
  funcMap["test1"] = &amp;Test::test1;
  funcMap["test2"] = &amp;Test::test2; 
  </code></pre>
  
  <p>Test would look something like:</p>
  
  <pre><code>class Test
  {
  void test1(SomeClass arg) {}
  void test2(SomeOtherClass arg) {}
  };
  </code></pre>
  
  <p>Is what I'm attempting possible? Is there a better way to go about it? Thanks!</p>