diff options
-rw-r--r-- | include/phat/representations/vector_vector.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/phat/representations/vector_vector.h b/include/phat/representations/vector_vector.h index 4aee533..15dbfb1 100644 --- a/include/phat/representations/vector_vector.h +++ b/include/phat/representations/vector_vector.h @@ -95,8 +95,7 @@ namespace phat { temp_col.erase(col_end, temp_col.end());
- target_col = temp_col;
- temp_col.clear();
+ target_col.swap(temp_col);
}
};
}
|