diff --git a/include/boost/intrusive/detail/generic_hook.hpp b/include/boost/intrusive/detail/generic_hook.hpp index eff7fa0..a4921de 100644 --- a/include/boost/intrusive/detail/generic_hook.hpp +++ b/include/boost/intrusive/detail/generic_hook.hpp @@ -41,7 +41,7 @@ struct link_dispatch {}; template -void destructor_impl(Hook &hook, detail::link_dispatch) +BOOST_INTRUSIVE_FORCEINLINE void destructor_impl(Hook &hook, detail::link_dispatch) { //If this assertion raises, you might have destroyed an object //while it was still inserted in a container that is alive. //If so, remove the object from the container before destroying it. @@ -49,11 +49,11 @@ void destructor_impl(Hook &hook, detail::link_dispatch) } template -void destructor_impl(Hook &hook, detail::link_dispatch) +BOOST_INTRUSIVE_FORCEINLINE void destructor_impl(Hook &hook, detail::link_dispatch) { hook.unlink(); } template -void destructor_impl(Hook &, detail::link_dispatch) +BOOST_INTRUSIVE_FORCEINLINE void destructor_impl(Hook &, detail::link_dispatch) {} } //namespace detail {