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