From 6053ed9452027befdde5beceb3c75e3eaa26e75d Mon Sep 17 00:00:00 2001 From: deanlee Date: Wed, 11 Sep 2024 01:48:28 +0800 Subject: [PATCH] Use std::move for Efficient Observation Rewind --- rednose/helpers/ekf_sym.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rednose/helpers/ekf_sym.cc b/rednose/helpers/ekf_sym.cc index 38d419d..a191e3e 100644 --- a/rednose/helpers/ekf_sym.cc +++ b/rednose/helpers/ekf_sym.cc @@ -127,7 +127,7 @@ std::deque EKFSym::rewind(double t) { // rewind observations until t is after previous observation while (this->rewind_t.back() > t) { - rewound.push_front(this->rewind_obscache.back()); + rewound.push_front(std::move(this->rewind_obscache.back())); this->rewind_t.pop_back(); this->rewind_states.pop_back(); this->rewind_obscache.pop_back();