hi, i have Runtime Error "map/set iterators incompatible" in line &&&&&&
void Manager::Simulate(Military* military, Shalishut* shalishut,char* args[]){ Simulation* simulation = Simulation::GetInstance(); Time* time = Time::GetInstance();
multimap<int,Task*>::iterator itTasks;
itTasks = simulation->GetTasks().begin();
while(itTasks != simulation->GetTasks().end()){
&&&&&& while (itTasks->second->GetTimeStamp() == time->GetTime()){
TaskExecute(itTasks->second,military,shalishut,args);
itTasks++;
}
// Unit take car of vehicles
time->TimeIncrease();
}
}
what is the problem ?