From a35e5a6b08d6e9a2261ffec14f0556dd4e64c141 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Sat, 8 Feb 2025 22:42:36 -0500 Subject: [PATCH] remove rvalue argument so we can wrap method --- gtsam/hybrid/HybridSmoother.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/hybrid/HybridSmoother.h b/gtsam/hybrid/HybridSmoother.h index c626d00a3..017b1fb4e 100644 --- a/gtsam/hybrid/HybridSmoother.h +++ b/gtsam/hybrid/HybridSmoother.h @@ -49,8 +49,8 @@ class GTSAM_EXPORT HybridSmoother { /** * Re-initialize the smoother from a new hybrid Bayes Net. */ - void reInitialize(HybridBayesNet&& hybridBayesNet) { - hybridBayesNet_ = std::move(hybridBayesNet); + void reInitialize(HybridBayesNet& hybridBayesNet) { + hybridBayesNet_ = hybridBayesNet; } /**