diff --git a/include/boost/intrusive/detail/key_nodeptr_comp.hpp b/include/boost/intrusive/detail/key_nodeptr_comp.hpp index 171a2e8..1a5ec32 100644 --- a/include/boost/intrusive/detail/key_nodeptr_comp.hpp +++ b/include/boost/intrusive/detail/key_nodeptr_comp.hpp @@ -63,15 +63,13 @@ struct key_nodeptr_comp typename enable_if, const key_type &>::type key_forward(const T &node) const { return key_of_value()(*traits_->to_value_ptr(node)); } + template #if defined(BOOST_MOVE_HELPERS_RETURN_SFINAE_BROKEN) - template const T &key_forward (const T &key, typename disable_if >::type* =0) const - { return key; } #else - template typename disable_if, const T &>::type key_forward(const T &key) const - { return key; } #endif + { return key; } //operator() 1 arg template