diff --git a/modules/beast_asio/async/WrapHandler.h b/modules/beast_asio/async/WrapHandler.h index 7d28934fe..7134d2bc7 100644 --- a/modules/beast_asio/async/WrapHandler.h +++ b/modules/beast_asio/async/WrapHandler.h @@ -160,8 +160,12 @@ template bool asio_handler_is_continuation( WrappedHandler * this_handler) { +#if BEAST_ASIO_HAS_CONTINUATION_HOOKS return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler()); +#else + return false; +#endif } template