From ed8b1eeaa1eb6f4a68f27a1191dc6381ad84a873 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 24 Feb 2014 09:29:30 -0500 Subject: [PATCH] Converted another loop to use insert like was fixed in the previous commit (wasn't a problem this time but am matching the style to the other file) --- gtsam_unstable/nonlinear/BatchFixedLagSmoother.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtsam_unstable/nonlinear/BatchFixedLagSmoother.cpp b/gtsam_unstable/nonlinear/BatchFixedLagSmoother.cpp index 9b8cc38f0..ed4b66616 100644 --- a/gtsam_unstable/nonlinear/BatchFixedLagSmoother.cpp +++ b/gtsam_unstable/nonlinear/BatchFixedLagSmoother.cpp @@ -371,9 +371,7 @@ void BatchFixedLagSmoother::marginalize(const std::set& marginalizeKeys) { VariableIndex variableIndex(factors_); BOOST_FOREACH(Key key, marginalizeKeys) { const FastList& slots = variableIndex[key]; - BOOST_FOREACH(size_t slot, slots) { - removedFactorSlots.insert(slot); - } + removedFactorSlots.insert(slots.begin(), slots.end()); } if(debug) {