From 02da1a439e096703b535c6f3171668ff62cf4986 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Fri, 25 Oct 2013 21:35:38 +0000 Subject: [PATCH] Small change with map_values, target --- .cproject | 4 ++-- gtsam/linear/VectorValues.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.cproject b/.cproject index 5d3496e1d..fed8aa1f5 100644 --- a/.cproject +++ b/.cproject @@ -1787,10 +1787,10 @@ true true - + make -j5 - testVectorValues.run + testVectorValuesUnordered.run true true true diff --git a/gtsam/linear/VectorValues.cpp b/gtsam/linear/VectorValues.cpp index eecf3ce96..cbf573e98 100644 --- a/gtsam/linear/VectorValues.cpp +++ b/gtsam/linear/VectorValues.cpp @@ -126,8 +126,8 @@ namespace gtsam { { // Count dimensions DenseIndex totalDim = 0; - BOOST_FOREACH(const value_type& v, *this) - totalDim += v.second.size(); + BOOST_FOREACH(const Vector& v, *this | map_values) + totalDim += v.size(); // Copy vectors Vector result(totalDim);