Cleanup: use std::function instead of boost::function.
authorCarl Hetherington <cth@carlh.net>
Tue, 27 Dec 2022 21:52:21 +0000 (22:52 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 14 Apr 2024 15:21:15 +0000 (17:21 +0200)
src/verify.cc
src/verify.h

index 3edb235ed017702adfa47dd979dbcb042570acab..0b24b9755ab7051648fb6be3a43b784c4df477b5 100644 (file)
@@ -88,6 +88,7 @@
 
 using std::cout;
 using std::dynamic_pointer_cast;
+using std::function;
 using std::list;
 using std::make_shared;
 using std::map;
@@ -97,7 +98,6 @@ using std::shared_ptr;
 using std::string;
 using std::vector;
 using boost::optional;
-using boost::function;
 
 
 using namespace dcp;
index 3e6c478b204ea81c8437f7c3b4712536befdba1f..c6658a77784ff456b0d16d72ee3a26403cd5968a 100644 (file)
@@ -659,8 +659,8 @@ struct VerificationOptions
 std::vector<VerificationNote> verify (
        std::vector<boost::filesystem::path> directories,
        std::vector<dcp::DecryptedKDM> kdms,
-       boost::function<void (std::string, boost::optional<boost::filesystem::path>)> stage,
-       boost::function<void (float)> progress,
+       std::function<void (std::string, boost::optional<boost::filesystem::path>)> stage,
+       std::function<void (float)> progress,
        VerificationOptions options = {},
        boost::optional<boost::filesystem::path> xsd_dtd_directory = boost::optional<boost::filesystem::path>()
        );