Fix compile issue on TBB

release/4.3a0
Frank Dellaert 2023-02-05 15:13:14 -08:00
parent a193867214
commit 3629d127c6
1 changed files with 1 additions and 1 deletions

View File

@ -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(