Open GoogleCodeExporter opened 8 years ago
Here is the code without auto to make it more readable:
for (btree_multimap<unsigned int, unsigned int>::iterator it = range.first; it
!= range.second; ++it) {
auto temp = it->second;
std::vector<unsigned int>::iterator position = std::find(deleted_queries.begin(), deleted_queries.end(), temp);
if (position != deleted_queries.end()) {
duplicates.erase(temp);
deleted_queries.erase(position);
} else {
query_ids.push_back(it->second);
}
}
Please keep in mind that the error seems to be at auto temp = it->second;
Original comment by nteni...@gmail.com
on 21 Mar 2013 at 3:19
Original issue reported on code.google.com by
nteni...@gmail.com
on 21 Mar 2013 at 3:16