diff --git a/gtsam/linear/VectorValues.cpp b/gtsam/linear/VectorValues.cpp index 371a5b26d..62996af27 100644 --- a/gtsam/linear/VectorValues.cpp +++ b/gtsam/linear/VectorValues.cpp @@ -395,7 +395,7 @@ namespace gtsam { // Print out all rows. #ifdef GTSAM_USE_TBB // TBB uses un-ordered map, so inefficiently order them: - std::map ordered; + std::map ordered; for (const auto& kv : *this) ordered.emplace(kv); for (const auto& kv : ordered) { #else diff --git a/gtsam/linear/tests/testVectorValues.cpp b/gtsam/linear/tests/testVectorValues.cpp index 81b15b3e2..521cc2289 100644 --- a/gtsam/linear/tests/testVectorValues.cpp +++ b/gtsam/linear/tests/testVectorValues.cpp @@ -272,7 +272,6 @@ TEST(VectorValues, html) { "\n" ""; string actual = vv.html(); - cout << actual << endl; EXPECT(actual == expected); }