I am trying to iterate two maps with one loop. it works fine with one map. when I add second map(see code below) it gives me error "Cannot deduce 'auto' type"
both variables are of same type.
what is the best way to iterate two maps.
for ( auto& insertEntry = insertedInstances.begin(),
auto& updateEntry = toUpdateInstances.begin();
insertEntry != insertedInstances.end(); insertEntry++,updateEntry++
)
{
//do something
}