Okay , I think I got you confused.
Your insert code should look like this:
multimap_order_total.insert(pair<string, int>( ReadPosition(sort_name, Menu_Cfg, order_i));
Note the lack of const before string, and the lack of tthe const cast.
Now, the const_iterators are for your compare function, not for the printing of the multimap. The multimap code should work the way it was. If you dont mind the multimap sorting your strings case sensitive for the moment, you could try declaring the map like so:
multimap<string, int> multimap_order_total;
And comment out your ltstr and compare ignore case functions for the moment.
Quote:
CGImap query(getenv("QUERY_STRING"));
for(CGImap::iterator it = query.begin(); it != query.end(); it++) {
SystemVarPar_String[SystemVarPar_Count][0]=(*it).first;
SystemVarPar_String[SystemVarPar_Count][1]=(*it).second;
SystemVarPar_Count++;
}
shenuadmin.cpp:1568: error: using obsolete binding at `it'
looks like the first thing I need to change variable name.
I suspect that this is cause by using the variable "it" outside the for loop, not in the code you posted