title: What is the most convenient way to initialize a static vector inside a class?
body: <p>If I want to initialize a vector inside a class, for example:</p>
  
  <pre><code>class A {
    private:
      static std::vector&lt;double&gt; label_map;
  };
  </code></pre>
  
  <p>If I want to initialize this static vector, what is the best way to do? I've read in some other posts saying that starting from GCC 4.4, it supports new features in C++0x and we can directly use </p>
  
  <pre><code>static std::vector&lt;double&gt; label_map = {1, 2, 3, 4};
  </code></pre>
  
  <p>However seems it doesn't work for me.</p>