diff --git a/src/context.cpp b/src/context.cpp index 90f9aaf0..e76bc4d2 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -30,9 +30,11 @@ class main_context final : public context { class dispatcher_context final : public context { private: boost::context::fiber - run_( boost::context::fiber && c) { #if (defined(BOOST_USE_UCONTEXT)||defined(BOOST_USE_WINFIB)) + run_( boost::context::fiber && c) { std::move( c).resume(); +#else + run_( boost::context::fiber &&) { #endif // execute scheduler::dispatch() return get_scheduler()->dispatch();