title: constant capacity vector in class
body: <p>I want to make a vector in private part of a class that hold only 10 integers 
  but I get  " syntax error 'constant' " while making this vector in the private part of class.
  I know that I can use a constant array instead of vector but why I can't use vector with constant capacity in a class? 
  also if I make this vector in main() function every thing is fine but in the class I get this error!</p>
  
  <pre><code>class A
  {
  public:
  // constructor 
  private:
  std::vector&lt;int&gt; tests(10); // here I get error
  };
  </code></pre>