mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix is_continuation for boost version
This commit is contained in:
@@ -160,8 +160,12 @@ template <typename Handler, typename Context>
|
|||||||
bool asio_handler_is_continuation(
|
bool asio_handler_is_continuation(
|
||||||
WrappedHandler <Handler, Context>* this_handler)
|
WrappedHandler <Handler, Context>* this_handler)
|
||||||
{
|
{
|
||||||
|
#if BEAST_ASIO_HAS_CONTINUATION_HOOKS
|
||||||
return boost_asio_handler_cont_helpers::is_continuation(
|
return boost_asio_handler_cont_helpers::is_continuation(
|
||||||
this_handler->handler());
|
this_handler->handler());
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Function, typename Handler, typename Context>
|
template <typename Function, typename Handler, typename Context>
|
||||||
|
|||||||
Reference in New Issue
Block a user