With Richard: changing from "unsafe_erase" to "erase"
parent
5b4f61171f
commit
f01883b08b
|
|
@ -416,7 +416,7 @@ namespace gtsam {
|
|||
child->parent_ = typename Clique::weak_ptr();
|
||||
|
||||
BOOST_FOREACH(Key j, clique->conditional()->frontals()) {
|
||||
nodes_.unsafe_erase(j);
|
||||
nodes_.erase(j);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -495,7 +495,7 @@ namespace gtsam {
|
|||
|
||||
// Remove this node from the nodes index
|
||||
BOOST_FOREACH(Key j, (*clique)->conditional()->frontals()) {
|
||||
nodes_.unsafe_erase(j); }
|
||||
nodes_.erase(j); }
|
||||
|
||||
// Erase the parent and children pointers
|
||||
(*clique)->parent_.reset();
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ void ISAM2::Impl::RemoveVariables(const FastSet<Key>& unusedKeys, const std::vec
|
|||
deltaNewton.erase(key);
|
||||
RgProd.erase(key);
|
||||
replacedKeys.erase(key);
|
||||
nodes.unsafe_erase(key);
|
||||
nodes.erase(key);
|
||||
theta.erase(key);
|
||||
fixedVariables.erase(key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue