diff --git a/barn-agent/src/helpers.h b/barn-agent/src/helpers.h index 666aa17..31af100 100644 --- a/barn-agent/src/helpers.h +++ b/barn-agent/src/helpers.h @@ -23,6 +23,8 @@ int count_missing(std::vector small, std::vector big); template std::vector larger_than_gap(const std::vector A, const std::vector B) { + using boost::lambda::_1; + std::vector C; set_difference(A.begin(), A.end(), B.begin(), B.end() @@ -31,7 +33,7 @@ std::vector larger_than_gap(const std::vector A, const std::vector B) { std::vector D(B); if(!C.empty()) - D.erase(remove_if(D.begin(), D.end(), boost::lambda::_1 <= C.back()) + D.erase(remove_if(D.begin(), D.end(), _1 <= C.back()) , D.end()); return D;