title: private member array initialization through constructor initializer's list in c++
body: <p>After going through all the questions asked about aggregate member initialization through initializer list still i am left with the question mark??? i have tried these two methods to initialize the private member array.</p>
  
  <pre><code>class C {
    C(const vector&lt;int&gt; &amp;a): m_array(a) {} // using vector 
   private:
    C(initializer_list&lt;int&gt; a): m_array(a) {} //using initializer list
    int m_array[6];
  };
  </code></pre>
  
  <p>both of the above methods throw error <em>"cannot specify explicit initializer for arrays"</em> in visual studio 2010. can somebody explain that whether these ways are correct, if yes then why these errors are coming up...</p>