Avoid deprecated Boost.Asio interfaces
Change-Id: I00d285893ff61619f49dff8a8a55d0d0e2c309a7
diff --git a/tests/unit/security/validator-null.t.cpp b/tests/unit/security/validator-null.t.cpp
index ebae900..05dd270 100644
--- a/tests/unit/security/validator-null.t.cpp
+++ b/tests/unit/security/validator-null.t.cpp
@@ -39,8 +39,8 @@
ValidatorNull validator;
validator.validate(data,
- std::bind([] { BOOST_CHECK_MESSAGE(true, "Validation should succeed"); }),
- std::bind([] { BOOST_CHECK_MESSAGE(false, "Validation should not have failed"); }));
+ [] (auto&&...) { BOOST_CHECK_MESSAGE(true, "Validation should succeed"); },
+ [] (auto&&...) { BOOST_CHECK_MESSAGE(false, "Validation should not have failed"); });
}
BOOST_AUTO_TEST_CASE(ValidateInterest)
@@ -51,8 +51,8 @@
ValidatorNull validator;
validator.validate(interest,
- std::bind([] { BOOST_CHECK_MESSAGE(true, "Validation should succeed"); }),
- std::bind([] { BOOST_CHECK_MESSAGE(false, "Validation should not have failed"); }));
+ [] (auto&&...) { BOOST_CHECK_MESSAGE(true, "Validation should succeed"); },
+ [] (auto&&...) { BOOST_CHECK_MESSAGE(false, "Validation should not have failed"); });
}
BOOST_AUTO_TEST_SUITE_END() // TestValidatorNull