title: static const std::vector
body: <p>I am writing an image viewer with Qt.
  I am trying to do the following in the header file:</p>
  
  <pre><code>class ImageModel
  {
  
  
  private:
      const static std::vector&lt;int&gt; mZoomLevels;
  
  }
  </code></pre>
  
  <p>in the source file:</p>
  
  <pre><code>int zooms[] = {1,2,3,4,5,6,7,8,9,10};
  const std::vector&lt;int&gt; mZoomLevels(zooms.begin(),zooms.end());
  </code></pre>
  
  <p>However I get the following error:</p>
  
  <blockquote>
    <p>request for member 'begin' in zooms which is of non-class type 'int[10]'
    request for member 'end' in zooms which is of non-class type 'int[10]'</p>
  </blockquote>
  
  <p>Does anyone know how to initialize this static const private member ?</p>