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; } /**