diff --git a/gtsam/inference/IndexFactor.cpp b/gtsam/inference/IndexFactor.cpp index 91af3dc6e..999b82627 100644 --- a/gtsam/inference/IndexFactor.cpp +++ b/gtsam/inference/IndexFactor.cpp @@ -28,9 +28,9 @@ template class FactorBase; IndexFactor::IndexFactor(const IndexConditional& c) : Base(static_cast(c)) {} -pair::shared_ptr, IndexFactor::shared_ptr> IndexFactor::CombineAndEliminate( +pair::shared_ptr, IndexFactor::shared_ptr> IndexFactor::CombineAndEliminate( const FactorGraph& factors, size_t nrFrontals) { - pair::shared_ptr, shared_ptr> result; + pair::shared_ptr, shared_ptr> result; result.second = Combine(factors, VariableSlots(factors)); result.first = result.second->eliminate(nrFrontals); return result; diff --git a/gtsam/inference/IndexFactor.h b/gtsam/inference/IndexFactor.h index 4f3366a8c..a0dd4c6bb 100644 --- a/gtsam/inference/IndexFactor.h +++ b/gtsam/inference/IndexFactor.h @@ -65,7 +65,7 @@ public: /** * Combine and eliminate several factors. */ - static std::pair::shared_ptr, shared_ptr> CombineAndEliminate( + static std::pair::shared_ptr, shared_ptr> CombineAndEliminate( const FactorGraph& factors, size_t nrFrontals=1); /** Create a combined joint factor (new style for EliminationTree). */