Some macOS test build fixes.
[dcpomatic.git] / test / util_test.cc
index 1c1091f28fb0e8d983ef7984b874cdeb9c899237..c1d11b7612c5968696bb58a41a5bbe5d7815dc72 100644 (file)
@@ -35,6 +35,9 @@ using std::string;
 using std::vector;
 using std::list;
 using boost::shared_ptr;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
 using namespace dcpomatic;
 
 BOOST_AUTO_TEST_CASE (digest_head_tail_test)
@@ -98,9 +101,9 @@ BOOST_AUTO_TEST_CASE (tidy_for_filename_test)
 
 BOOST_AUTO_TEST_CASE (utf8_strlen_test)
 {
-       BOOST_CHECK_EQUAL (utf8_strlen("hello world"), 11);
-       BOOST_CHECK_EQUAL (utf8_strlen("hëllo world"), 11);
-       BOOST_CHECK_EQUAL (utf8_strlen("hëłlo wørld"), 11);
+       BOOST_CHECK_EQUAL (utf8_strlen("hello world"), 11U);
+       BOOST_CHECK_EQUAL (utf8_strlen("hëllo world"), 11U);
+       BOOST_CHECK_EQUAL (utf8_strlen("hëłlo wørld"), 11U);
 }
 
 #ifdef DCPOMATIC_VARIANT_SWAROOP