From e88ddfc7854ee6eaa234ecffb4743522d76bf564 Mon Sep 17 00:00:00 2001 From: "ulrich.bauer@gmail.com" Date: Tue, 3 Jun 2014 13:30:56 +0000 Subject: swap git-svn-id: https://phat.googlecode.com/svn/trunk@181 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d --- include/phat/representations/vector_vector.h | 3 +-- 1 file changed, 1 insertion(+), 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); } }; } -- cgit v1.2.3