#include<map> using namespace std; typedef map<char,char> charMap; //take a global variable for this map charMap g_charMap; int i; //it is working fine g_charMap.insert(make_pair('{','}'));//Above mentioned Error is shown in this line int main() { //some stuff is there. }
charMap g_charMap; int main() { g_charMap.insert(make_pair('{','}')); //some stuff is there. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)