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);