From 85f5dda7e189d2b196a63840104d3b30483d5824 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 25 Jul 2022 12:10:59 -0700 Subject: [PATCH] ircd::ctx: Fixes for boost 1.76 asio API changes. --- ircd/ctx.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ircd/ctx.cc b/ircd/ctx.cc index ecc579bb7..0d4ba8154 100644 --- a/ircd/ctx.cc +++ b/ircd/ctx.cc @@ -3474,7 +3474,11 @@ boost::asio::detail::epoll_reactor::cancel_timer(timer_queue auto *const thread_info { - static_cast(scheduler::thread_call_stack::top()) + #if BOOST_VERSION >= 107600 + static_cast(scheduler::top_of_thread_call_stack()) + #else + static_cast(scheduler::thread_call_stack::top()) + #endif }; std::size_t ret; @@ -3484,6 +3488,7 @@ boost::asio::detail::epoll_reactor::cancel_timer(timer_queue ret = queue.cancel_timer(t, ops, max); } + assert(thread_info); if constexpr(post_priv) thread_info->private_op_queue.push(ops);