From 3629d127c611deccfae253dfa9ef4289d42654b9 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 5 Feb 2023 15:13:14 -0800 Subject: [PATCH] Fix compile issue on TBB --- gtsam/linear/VectorValues.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/linear/VectorValues.cpp b/gtsam/linear/VectorValues.cpp index b59a4b273..6ec7fb764 100644 --- a/gtsam/linear/VectorValues.cpp +++ b/gtsam/linear/VectorValues.cpp @@ -92,7 +92,7 @@ namespace gtsam { // Use this trick to find the value using a hint, since we are inserting // from another sorted map size_t oldSize = values_.size(); - hint = values_.emplace_hint(hint, key, value); + hint = values_.insert(hint, {key, value}); if (values_.size() > oldSize) { values_.unsafe_erase(hint); throw out_of_range(