diff --git a/gtsam_unstable/nonlinear/BatchFixedLagSmoother.h b/gtsam_unstable/nonlinear/BatchFixedLagSmoother.h index a6d25d8a1..27fe94451 100644 --- a/gtsam_unstable/nonlinear/BatchFixedLagSmoother.h +++ b/gtsam_unstable/nonlinear/BatchFixedLagSmoother.h @@ -118,10 +118,9 @@ public: #ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4 static NonlinearFactorGraph calculateMarginalFactors( const NonlinearFactorGraph& graph, const Values& theta, const std::set& keys, - const GaussianFactorGraph::Eliminate& eliminateFunction) { + const GaussianFactorGraph::Eliminate& eliminateFunction = EliminatePreferCholesky) { KeyVector keyVector(keys.begin(), keys.end()); - return CalculateMarginalFactors(graph, theta, keyVector, - eliminateFunction = EliminatePreferCholesky); + return CalculateMarginalFactors(graph, theta, keyVector, eliminateFunction); } #endif