title: Using a fixed length vector in a struct - C++
body: <p>I'm trying to do something like that:</p>
  
  <pre><code>//stack.h
  
  #ifndef STACK_H_INCLUDED
  #define STACK_H_INCLUDED
  #include &lt;vector&gt;
  
  struct CharStack {
      int sp;
      std::vector&lt;char&gt; data(87);
  } S;
  </code></pre>
  
  <p>But I get some errors like:</p>
  
  <pre><code>error: expected identifier before numeric constant
  error: expected ',' or '...' before numeric constant
  </code></pre>
  
  <p>Why does that happen? There seems to be no problem when I want to create a vector with dynamic length </p>