From: Carl Hetherington Date: Tue, 8 Aug 2023 12:38:47 +0000 (+0200) Subject: Fix boost bind placeholder warnings. X-Git-Tag: v1.8.75~1 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=20b6a9862bbde42e9ce038b33ec049194a8146a5;hp=474aeac068c193bc429d2c1f417290b2b8cd1810;p=libdcp.git Fix boost bind placeholder warnings. --- diff --git a/test/asset_test.cc b/test/asset_test.cc index c52ebdd1..b4a48296 100644 --- a/test/asset_test.cc +++ b/test/asset_test.cc @@ -34,13 +34,17 @@ #include "asset.h" #include "equality_options.h" -#include +#include #include using std::string; using std::shared_ptr; using std::make_shared; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif + class DummyAsset : public dcp::Asset diff --git a/test/make_digest_test.cc b/test/make_digest_test.cc index 98792e62..c710f572 100644 --- a/test/make_digest_test.cc +++ b/test/make_digest_test.cc @@ -34,12 +34,17 @@ #include "array_data.h" #include "util.h" -#include +#include #include #include #include +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif + + void progress (float) { diff --git a/test/markers_test.cc b/test/markers_test.cc index 0537cbe8..316d7e9c 100644 --- a/test/markers_test.cc +++ b/test/markers_test.cc @@ -36,7 +36,7 @@ #include "equality_options.h" #include "reel.h" #include "reel_markers_asset.h" -#include +#include #include #include @@ -44,6 +44,9 @@ using std::make_shared; using std::shared_ptr; using std::string; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif BOOST_AUTO_TEST_CASE (markers_write_test) diff --git a/test/rgb_xyz_test.cc b/test/rgb_xyz_test.cc index 00787938..cf3eb9ff 100644 --- a/test/rgb_xyz_test.cc +++ b/test/rgb_xyz_test.cc @@ -37,7 +37,7 @@ #include "piecewise_lut.h" #include "rgb_xyz.h" #include "stream_operators.h" -#include +#include #include #include #include @@ -51,6 +51,9 @@ using std::shared_ptr; using std::string; using boost::optional; using boost::scoped_array; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif static diff --git a/tools/dcpverify.cc b/tools/dcpverify.cc index 1b9bab80..770dd78f 100644 --- a/tools/dcpverify.cc +++ b/tools/dcpverify.cc @@ -37,7 +37,7 @@ #include "raw_convert.h" #include "verify.h" #include "version.h" -#include +#include #include #include #include @@ -52,6 +52,9 @@ using std::string; using std::vector; using boost::bind; using boost::optional; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif static void