Skip to content

Commit

Permalink
Use std::move for Efficient Observation Rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed Sep 10, 2024
1 parent 05fd602 commit 6053ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rednose/helpers/ekf_sym.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ std::deque<Observation> 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();
Expand Down

0 comments on commit 6053ed9

Please sign in to comment.