summaryrefslogtreecommitdiff
path: root/include/phat
diff options
context:
space:
mode:
Diffstat (limited to 'include/phat')
-rw-r--r--include/phat/representations/vector_vector.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/phat/representations/vector_vector.h b/include/phat/representations/vector_vector.h
index 06fd060..da8ec5a 100644
--- a/include/phat/representations/vector_vector.h
+++ b/include/phat/representations/vector_vector.h
@@ -87,7 +87,9 @@ namespace phat {
std::set_symmetric_difference( target_col.begin(), target_col.end(),
source_col.begin(), source_col.end(),
std::back_inserter( temp_col ) );
- target_col.swap( temp_col );
+ //target_col.swap( temp_col );
+ target_col = temp_col;
+ temp_col.clear();
}
};
}