title: variadic template unpacking arguments to typename
body: <p>I want to unpack the parameter pack in <code>func</code> (see line A), but it doesnt work.  How can I unpack inside func&lt; > or modify Line A only?</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  void func()
  {
     cerr &lt;&lt; "EMPTY" &lt;&lt; endl;
  }
  
  template &lt;class A, class ...B&gt; void func()
  {
     cerr &lt;&lt; "A: "  &lt;&lt; endl;
     func&lt;B... &gt;(); // line A
  }
  
  
  int main(void)
  {
     func&lt;int,int&gt;();
     return 0;
  }
  </code></pre>
  
  <p>An expected output :</p>
  
  <pre><code>A:
  A:
  </code></pre>
  
  <p>edited:
  all of answers are very good. thanks alot</p>