summaryrefslogtreecommitdiff
path: root/p2pvr/lib/mapIterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'p2pvr/lib/mapIterator.h')
-rw-r--r--p2pvr/lib/mapIterator.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/p2pvr/lib/mapIterator.h b/p2pvr/lib/mapIterator.h
index 8a06fe6..70aa424 100644
--- a/p2pvr/lib/mapIterator.h
+++ b/p2pvr/lib/mapIterator.h
@@ -2,7 +2,6 @@
#define MAPITERATOR_H
#include <iHaveSubTasks.h>
-#include <boost/foreach.hpp>
#include "objectRowState.h"
template <typename T>
@@ -21,7 +20,7 @@ class MapIterator : public IHaveSubTasks {
void execute(ExecContext * ec) const
{
ObjectRowState<typename T::value_type> rs(columnSpecifier);
- BOOST_FOREACH(const auto & i, *map) {
+ for (const auto & i : *map) {
binder(rs, i);
rs.process(boost::bind(&MapIterator::executeChildren, this, ec));
}
@@ -31,10 +30,10 @@ class MapIterator : public IHaveSubTasks {
boost::function<void(RowState &, const typename T::value_type &)> binder;
const ColumnSpecifier columnSpecifier;
const T * map;
-
+
void executeChildren(ExecContext * ec) const
{
- BOOST_FOREACH(const Tasks::value_type & sq, normal) {
+ for (const Tasks::value_type & sq : normal) {
sq->execute(ec);
}
}