From 25d54fde87a43049a88e622c9b2a251a5881b0fe Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 19 Jun 2016 12:28:55 -0700 Subject: [PATCH] Fixed bug in deprecated function --- gtsam_unstable/nonlinear/BatchFixedLagSmoother.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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