diff --git a/include/boost/fiber/detail/scheduler.hpp b/include/boost/fiber/detail/scheduler.hpp index 52b2509a..187d0291 100644 --- a/include/boost/fiber/detail/scheduler.hpp +++ b/include/boost/fiber/detail/scheduler.hpp @@ -36,7 +36,8 @@ public: static fiber_base::ptr_t extract( F const& f) { return f.impl_; } - static algorithm * instance() BOOST_NOEXCEPT; + static algorithm * instance() BOOST_NOEXCEPT + { return instance_.get(); } static algorithm * replace( algorithm * other) BOOST_NOEXCEPT; }; diff --git a/src/detail/scheduler.cpp b/src/detail/scheduler.cpp index 955c2152..be0e33b9 100644 --- a/src/detail/scheduler.cpp +++ b/src/detail/scheduler.cpp @@ -19,13 +19,6 @@ static void cleanup_function( algorithm *) {} thread_specific_ptr< algorithm > scheduler::instance_( cleanup_function); -algorithm * -scheduler::instance() BOOST_NOEXCEPT -{ - BOOST_ASSERT( instance_.get() ); - return instance_.get(); -} - algorithm * scheduler::replace( algorithm * other) BOOST_NOEXCEPT {