title: C++ template for numeric types
body: <p>I want to have a template to select on numeric types, but I want to also have a global type template too. I tried to apply the solution for <a href="https://stackoverflow.com/questions/14294267/class-template-for-numeric-types">this</a> question, but it didn't work:</p>
  
  <pre><code>template&lt;typename T, typename ... Types&gt;
  void myFct(T arg1, Types ... rest) { /*do stuff*/ }
  
  template&lt;typename T, typename = typename std::enable_if&lt;std::is_arithmetic&lt;T&gt;::value, T&gt;::type, 
                       typename ... Types&gt;
  void myFct(T arg1, Types ... rest) { /* do stuff */ }
  </code></pre>
  
  <p>because now I have two functions with the same header. What's the right way to do something like:</p>
  
  <pre><code>template&lt;typename T, typename ... Types&gt;
  void myFct(T arg1, Types ... rest) 
  { 
      if (isNumeric(T))
          doNumericStuff();
      else
          doStuff();
  }
  </code></pre>