Don't test deprecated hooks

This commit is contained in:
Christopher Kohlhoff
2020-07-04 07:34:54 +02:00
committed by Richard Hodges
parent 06a0b18b1d
commit ca95101a88
+2
View File
@@ -116,6 +116,7 @@ struct legacy_handler
void
test(F const& f)
{
#if !defined(BOOST_ASIO_NO_DEPRECATED)
{
bool hook_invoked = false;
bool lambda_invoked = false;
@@ -150,6 +151,7 @@ struct legacy_handler
asio_handler_is_continuation(&h);
BEAST_EXPECT(hook_invoked);
}
#endif // !defined(BOOST_ASIO_NO_DEPRECATED)
}
};