mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 05:44:38 +02:00
Don't test deprecated hooks
This commit is contained in:
committed by
Richard Hodges
parent
06a0b18b1d
commit
ca95101a88
@@ -116,6 +116,7 @@ struct legacy_handler
|
|||||||
void
|
void
|
||||||
test(F const& f)
|
test(F const& f)
|
||||||
{
|
{
|
||||||
|
#if !defined(BOOST_ASIO_NO_DEPRECATED)
|
||||||
{
|
{
|
||||||
bool hook_invoked = false;
|
bool hook_invoked = false;
|
||||||
bool lambda_invoked = false;
|
bool lambda_invoked = false;
|
||||||
@@ -150,6 +151,7 @@ struct legacy_handler
|
|||||||
asio_handler_is_continuation(&h);
|
asio_handler_is_continuation(&h);
|
||||||
BEAST_EXPECT(hook_invoked);
|
BEAST_EXPECT(hook_invoked);
|
||||||
}
|
}
|
||||||
|
#endif // !defined(BOOST_ASIO_NO_DEPRECATED)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user