Don't test deprecated hooks

This commit is contained in:
Christopher Kohlhoff
2020-06-23 11:27:18 +10:00
committed by Richard Hodges
parent 06a0b18b1d
commit ca95101a88

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)
}
};