diff --git a/gtsam/inference/SymbolicFactorGraph.cpp b/gtsam/inference/SymbolicFactorGraph.cpp index ccb421d52..7f71ab54a 100644 --- a/gtsam/inference/SymbolicFactorGraph.cpp +++ b/gtsam/inference/SymbolicFactorGraph.cpp @@ -117,15 +117,15 @@ namespace gtsam { FastSet keys; BOOST_FOREACH(const IndexFactor::shared_ptr& factor, factors) - BOOST_FOREACH(Index var, *factor) - keys.insert(var); + BOOST_FOREACH(Index var, *factor) + keys.insert(var); if (keys.size() < nrFrontals) throw invalid_argument( - "EliminateSymbolic requested to eliminate more variables than exist in graph."); + "EliminateSymbolic requested to eliminate more variables than exist in graph."); vector newKeys(keys.begin(), keys.end()); return make_pair(boost::make_shared(newKeys, nrFrontals), - boost::make_shared(newKeys.begin() + nrFrontals, newKeys.end())); + boost::make_shared(newKeys.begin() + nrFrontals, newKeys.end())); } /* ************************************************************************* */