basically i have (state, state code) pairs, that are subsets of country [USA] -> [VT] -> 32
so i'm using std::map<tstring<std::map<tstring, unsigned int>>
but i'm having trouble with assignment of the state code
for(std::map<tstring, std::map<tstring, unsigned int>>::const_iterator it = countrylist.begin(); it != countrylist.end(); ++it)
{
foundCountry = !it->first.compare(_T("USA")); //find USA
if(foundCountry) it->second[_T("MN")] = 5; //Assignment fails
}
error C2678: binary '[' : no operator found which takes a left-hand operand of type 'const std::map<_Kty,_Ty>'
Thanks in advance!.