I am porting some C++ code from windows to Solaris. The code below compiles and works in windows, but does not compile on the solaris machine.
I need to be able to set .first to -1, but it says that it is a read only structure. I'm not using a const_iterator so I don't see why this is happening.
set< pair< long,set<wstring> > >::iterator itSet2;
long &tempLong = (*itSet2).first;
tempLong = -1;