title: Why can't I initialize a vector member in a structure while declaring it?
body: <pre><code>struct comp {
      long a;
      vector&lt;int&gt; b(9);
      bool c;
  };
  </code></pre>
  
  <p>Errors:</p>
  
  <pre><code>code.cpp:67:19: error: expected identifier before numeric constant
  code.cpp:67:19: error: expected ‘,’ or ‘...’ before numeric constant
  </code></pre>
  
  <p>What is wrong with this? Why doesn't g++ accept if I say that <code>b</code> will have 9 elements?</p>