title: populating map globally
body: <p>I have declared the following   map globally and trying to populate globally.</p>
  
  <pre><code>   1: typedef std::map&lt;unsigned short,std::pair&lt;char,std::string&gt;&gt; DeviceTypeList;
     2: DeviceTypeList g_DeviceTypeList;
     3: g_DeviceTypeList.insert( std::make_pair ((unsigned short)SINGLE_CELL_CAMERA,
     std::make_pair('B',"Single Cell Camera")));
  </code></pre>
  
  <p>it is showing error like <strong>error C2143: syntax error : missing ';' before '.'</strong> at line2.</p>
  
  <p>1 Am I doing something wrong<br>
  2. why can't we initialize the map globally.</p>