All pastes #338372 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-03 11:22 UTC
rendered paste body
int curr_machine_id = 0;
map<int,int>::iterator iter = m_machines->begin();
while(iter != m_machines->end() && (*iter).first != o->MachName())
{
    ++iter;
}
if ((*iter).first == o->MachName()) {
   curr_machine_id = (*iter).second;
} else {
   throw logic_error("jsp1::recalc2 machine not found!");                          
}