Add some missing forceinlines

This commit is contained in:
Ion Gaztañaga
2020-01-16 16:09:11 +01:00
parent 3b5001f22f
commit c66d25859b

View File

@@ -41,7 +41,7 @@ struct link_dispatch
{}; {};
template<class Hook> template<class Hook>
void destructor_impl(Hook &hook, detail::link_dispatch<safe_link>) BOOST_INTRUSIVE_FORCEINLINE void destructor_impl(Hook &hook, detail::link_dispatch<safe_link>)
{ //If this assertion raises, you might have destroyed an object { //If this assertion raises, you might have destroyed an object
//while it was still inserted in a container that is alive. //while it was still inserted in a container that is alive.
//If so, remove the object from the container before destroying it. //If so, remove the object from the container before destroying it.
@@ -49,11 +49,11 @@ void destructor_impl(Hook &hook, detail::link_dispatch<safe_link>)
} }
template<class Hook> template<class Hook>
void destructor_impl(Hook &hook, detail::link_dispatch<auto_unlink>) BOOST_INTRUSIVE_FORCEINLINE void destructor_impl(Hook &hook, detail::link_dispatch<auto_unlink>)
{ hook.unlink(); } { hook.unlink(); }
template<class Hook> template<class Hook>
void destructor_impl(Hook &, detail::link_dispatch<normal_link>) BOOST_INTRUSIVE_FORCEINLINE void destructor_impl(Hook &, detail::link_dispatch<normal_link>)
{} {}
} //namespace detail { } //namespace detail {