How to create an array constructor for my class? : <p>I would like to create a constructor, which is similar to the <code>int</code> array constructor: <code>int foo[3] = { 4, 5, 6 };</code></p>

<p>But I would like to use it like this:</p>

<pre><code>MyClass&lt;3&gt; foo = { 4, 5, 6 };
</code></pre>

<p>There is a private <code>n</code> size array in my class:</p>

<pre><code>template&lt;const int n=2&gt;
class MyClass {

    public:

        // code...

    private:

        int numbers[n];

        // code...

};
</code></pre>
