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)

release/4.3a0
Richard Roberts 2014-02-24 09:29:30 -05:00
parent 3e0904e250
commit ed8b1eeaa1
1 changed files with 1 additions and 3 deletions

View File

@ -371,9 +371,7 @@ void BatchFixedLagSmoother::marginalize(const std::set<Key>& marginalizeKeys) {
VariableIndex variableIndex(factors_);
BOOST_FOREACH(Key key, marginalizeKeys) {
const FastList<size_t>& slots = variableIndex[key];
BOOST_FOREACH(size_t slot, slots) {
removedFactorSlots.insert(slot);
}
removedFactorSlots.insert(slots.begin(), slots.end());
}
if(debug) {