title: C++: How to declare an empty private static vector inside a class?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/185844/initializing-private-static-members">Initializing private static members</a>  </p>
  </blockquote>
  
  
  
  <p>This is really driving me crazy, I want to declare a static private vector inside a class I am going to use as a shared memory.</p>
  
  <p>My vector declaration goes like this:</p>
  
  <pre><code>private: static vector&lt; pair&lt; string, bool &gt; &gt; flags;
  </code></pre>
  
  <p>This is done inside a class, but how can I initialize it as empty vector? The best would be if the init would be in the class itself, because I need to use it in many places. The other option would be in <code>main()</code> but nothing more.</p>
  
  <p>I have setFlag() and getFlag() methods that work with the vector, but it gives me all kinds of linker errors, because there is only declaration, no definition!</p>