C++ - std::enable_if for more types
<p>I have a function:</p>

<pre><code>template &lt;typename T,
  typename std::enable_if &lt;std::is_same&lt;T, int&gt;::value == true&gt;::type* = nullptr&gt;
void test(T i)
{
   //process data
}
</code></pre>

<p>It works.</p>

<p>However, I need to enable this function not only for <code>int</code>, but for <code>float</code> and <code>const char *</code> as well... how to do this without writing the same method 3x times?</p>