Fix crashes when using templates in some cases (#2491).
[dcpomatic.git] / src / lib / overlaps.h
index e8216fce0c6b1ac63964aaa180cc5532a188c52c..bb8277eaa91807966e2adf0f2779b1706211d283 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 "types.h"
+
 #include "dcpomatic_time.h"
+#include "types.h"
+
 
 class ContentPart;
+class Film;
+
 
 /** @return Pieces of content with a given part (video, audio,
- * subtitle) that overlap a specified time range in the given
- * ContentList */
+ *  subtitle) that overlap a specified time range in the given
+ *  ContentList
+ */
 ContentList overlaps (
-       ContentList cl, boost::function<boost::shared_ptr<ContentPart> (boost::shared_ptr<const Content>)> part, DCPTime from, DCPTime to
+       std::shared_ptr<const Film> film, ContentList cl, std::function<bool (std::shared_ptr<const Content>)> part, dcpomatic::DCPTime from, dcpomatic::DCPTime to
        );