summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-08-08 14:38:47 +0200
committerCarl Hetherington <cth@carlh.net>2023-08-08 14:38:47 +0200
commit20b6a9862bbde42e9ce038b33ec049194a8146a5 (patch)
treea198e280033c6636191590159293b64b1e02b426 /test
parent474aeac068c193bc429d2c1f417290b2b8cd1810 (diff)
Fix boost bind placeholder warnings.
Diffstat (limited to 'test')
-rw-r--r--test/asset_test.cc6
-rw-r--r--test/make_digest_test.cc7
-rw-r--r--test/markers_test.cc5
-rw-r--r--test/rgb_xyz_test.cc5
4 files changed, 19 insertions, 4 deletions
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 <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/test/unit_test.hpp>
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 <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/random.hpp>
#include <boost/test/unit_test.hpp>
#include <sys/time.h>
+#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 <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/test/unit_test.hpp>
#include <memory>
@@ -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 <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/random.hpp>
#include <boost/scoped_array.hpp>
#include <boost/test/unit_test.hpp>
@@ -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