Supporters update.
[dcpomatic.git] / src / lib / overlaps.cc
index 5ed7a983261fdb3a2b76924bf5cbd531d615f95a..fbc6b5cb1813c7646950f554c25cc952f8e6a5d0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
-#include "overlaps.h"
-#include "types.h"
+
 #include "content.h"
-#include <boost/foreach.hpp>
+#include "overlaps.h"
 
-using boost::shared_ptr;
-using boost::function;
+
+using std::function;
+using std::shared_ptr;
 using namespace dcpomatic;
 
+
 ContentList overlaps (shared_ptr<const Film> film, ContentList cl, function<bool (shared_ptr<const Content>)> part, DCPTime from, DCPTime to)
 {
        ContentList overlaps;
        DCPTimePeriod period (from, to);
-       BOOST_FOREACH (shared_ptr<Content> i, cl) {
-               if (part(i) && DCPTimePeriod(i->position(), i->end(film)).overlap(period)) {
+       for (auto i: cl) {
+               if (part(i) && i->period(film).overlap(period)) {
                        overlaps.push_back (i);
                }
        }