diff options
Diffstat (limited to 'p2pvr/lib/containerIterator.h')
-rw-r--r-- | p2pvr/lib/containerIterator.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/p2pvr/lib/containerIterator.h b/p2pvr/lib/containerIterator.h index 2b61055..03af88c 100644 --- a/p2pvr/lib/containerIterator.h +++ b/p2pvr/lib/containerIterator.h @@ -2,7 +2,6 @@ #define CONTAINERITERATOR_H #include <iHaveSubTasks.h> -#include <boost/foreach.hpp> #include "objectRowState.h" template <typename T> @@ -19,7 +18,7 @@ class ContainerIterator : public IHaveSubTasks { void execute(ExecContext * ec) const { ObjectRowState<typename T::value_type> rs; - BOOST_FOREACH(const auto & i, *container) { + for (const auto & i : *container) { binder(rs, i); rs.process(boost::bind(&ContainerIterator::executeChildren, this, ec)); } @@ -28,10 +27,10 @@ class ContainerIterator : public IHaveSubTasks { private: boost::function<void(RowState &, const typename T::value_type &)> binder; const T * container; - + void executeChildren(ExecContext * ec) const { - BOOST_FOREACH(const Tasks::value_type & sq, normal) { + for (const Tasks::value_type & sq : normal) { sq->execute(ec); } } |