diff --git a/examples/Hybrid_City10000.cpp b/examples/Hybrid_City10000.cpp index 76771ad36..f42496cef 100644 --- a/examples/Hybrid_City10000.cpp +++ b/examples/Hybrid_City10000.cpp @@ -127,7 +127,7 @@ class Experiment { auto bayesNet = linearized->eliminateSequential(); HybridValues delta = bayesNet->optimize(); initial_ = initial_.retract(delta.continuous()); - smoother_.reInitialize(std::move(*bayesNet)); + smoother_.reInitialize(*bayesNet); clock_t afterUpdate = clock(); std::cout << "Took " << (afterUpdate - beforeUpdate) / CLOCKS_PER_SEC << " seconds." << std::endl;