diff --git a/gtsam/linear/VectorValues.cpp b/gtsam/linear/VectorValues.cpp index 288b4471a..976f65971 100644 --- a/gtsam/linear/VectorValues.cpp +++ b/gtsam/linear/VectorValues.cpp @@ -136,7 +136,7 @@ namespace gtsam { #ifdef GTSAM_USE_TBB map sorted; for (const auto& key_value : v) { - sorted.emplace(std::make_pair(key_value.first, key_value.second)); + sorted.emplace(key_value.first, key_value.second); } for (const auto& key_value : sorted) #else