title: Static map initialization
body: <p>I have the following code:</p>
  <pre class="lang-cpp prettyprint-override"><code>//MyClass.h
  class MyClass {
  public:
      typedef std::map&lt;std::string, int&gt; OpMap;
      static OpMap opMap_;     
      // (more methods)
  };
  
  //MyClass.cpp
  //Init opMap_
  MyClass::opMap_[&quot;x&quot;] = 1; //compilation error
  </code></pre>
  <p>How can I (statically) initialize <code>opMap_</code>?</p>