title: C++ number of function's parameters fixed by template parameter
body: <p>I have a template class like this:</p>
  
  <pre><code>template &lt;unsigned N&gt;
  class Pixel {
      float color[N];
  }
  </code></pre>
  
  <p>I hope to have a constructor with exact <code>N</code> parameters to initialize the array in the class, like this:</p>
  
  <pre><code>Pixel&lt;N&gt; (float x_1, float x_2, ..., float x_N) {
      color[0] = x_1;
      color[1] = x_2;
      ...
  }
  </code></pre>
  
  <p>Obviously I can't implement the constructor by hand for each <code>N</code>. So how can I achieve this goal by template metaprogramming or any other techniques?</p>