diff --git a/fastlib/trunk/contrib/dongryel/thesis_research/core/parallel/table_exchange.h b/fastlib/trunk/contrib/dongryel/thesis_research/core/parallel/table_exchange.h index 531951c553..20a2709fb6 100644 --- a/fastlib/trunk/contrib/dongryel/thesis_research/core/parallel/table_exchange.h +++ b/fastlib/trunk/contrib/dongryel/thesis_research/core/parallel/table_exchange.h @@ -125,9 +125,9 @@ class TableExchange { // Put the found subtable to the end. SubTableType subtable_copy = *it; - received_subtables_[process_id].erase(it); - received_subtables_[process_id].push_back(SubTableType()); - received_subtables_[process_id].back() = subtable_copy; + (*it) = received_subtables_[process_id].front(); + received_subtables_[process_id].pop_front(); + received_subtables_[process_id].push_back(subtable_copy); return &(received_subtables_[process_id].back()); } }