From c66d25859b01e3dae590910ebf6d67cd62190d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 16 Jan 2020 16:09:11 +0100 Subject: [PATCH] Add some missing forceinlines --- include/boost/intrusive/detail/generic_hook.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {