title: C++ struct array initialization
body: <p>This is ok:</p>
  
  <pre><code>int vec_1[3] = {1,2,3};
  </code></pre>
  
  <p>so what's wrong with</p>
  
  <pre><code>struct arrays{
    int x[3];
    int y[3];
    int z[3];
  };
  arrays vec_2;
  vec_2.x = {1,2,3};
  </code></pre>
  
  <p>that gives:  </p>
  
  <blockquote>
  <pre><code>error: cannot convert ‘&lt;brace-enclosed initializer list&gt;’ to ‘int’ in assignment
  </code></pre>
  </blockquote>
  
  <p>I've read a lot of posts on this error but it's still not clear where the problem is.</p>