- if (table.size() != 0) // without this I get strange crashes
- for (Table::iterator it = table.begin(); it != table.end(); ++it) {
+ if (table.size() != 0) { // without this I get strange crashes
+ Table::iterator end = table.end();
+ for (Table::iterator it = table.begin(); it != end; ++it) {