BOOST_FOREACH.
[dcpomatic.git] / src / lib / overlaps.cc
index 5ed7a983261fdb3a2b76924bf5cbd531d615f95a..32801de39e5c0449a6b85fbb1de02b7c1a1c831b 100644 (file)
@@ -21,9 +21,8 @@
 #include "overlaps.h"
 #include "types.h"
 #include "content.h"
-#include <boost/foreach.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 using namespace dcpomatic;
 
@@ -31,7 +30,7 @@ ContentList overlaps (shared_ptr<const Film> film, ContentList cl, function<bool
 {
        ContentList overlaps;
        DCPTimePeriod period (from, to);
-       BOOST_FOREACH (shared_ptr<Content> i, cl) {
+       for (auto i: cl) {
                if (part(i) && DCPTimePeriod(i->position(), i->end(film)).overlap(period)) {
                        overlaps.push_back (i);
                }