diff --git a/include/xrpl/core/Coro.ipp b/include/xrpl/core/Coro.ipp index 2ed5e04d4a..d4961199aa 100644 --- a/include/xrpl/core/Coro.ipp +++ b/include/xrpl/core/Coro.ipp @@ -8,8 +8,8 @@ JobQueue::Coro::Coro(Coro_create_t, JobQueue& jq, JobType type, std::string cons , type_(type) , name_(name) , running_(false) - , coro_([this, - fn = std::forward(f)](boost::coroutines2::coroutine::push_type& do_yield) { + , coro_([this, fn = std::forward(f)]( + boost::coroutines2::asymmetric_coroutine::push_type& do_yield) { yield_ = &do_yield; yield(); fn(shared_from_this());