diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index 6f073ce..0fb4dff 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -283,7 +283,7 @@ namespace boost { #ifndef BOOST_FUNCTION_NO_ENABLE_IF ,typename detail::function::enable_if< (::boost::type_traits::ice_not< - is_same::value>::value), + (is_same::value)>::value), int>::type = 0 #endif // BOOST_FUNCTION_NO_ENABLE_IF ) : @@ -330,7 +330,8 @@ namespace boost { template #ifndef BOOST_FUNCTION_NO_ENABLE_IF typename detail::function::enable_if< - (::boost::type_traits::ice_not::value>::value), + (::boost::type_traits::ice_not< + (is_same::value)>::value), BOOST_FUNCTION_FUNCTION&>::type #else BOOST_FUNCTION_FUNCTION& @@ -578,7 +579,8 @@ public: function(Functor f #ifndef BOOST_FUNCTION_NO_ENABLE_IF ,typename detail::function::enable_if< - (::boost::type_traits::ice_not::value>::value), + (::boost::type_traits::ice_not< + (is_same::value)>::value), int>::type = 0 #endif ) : @@ -603,7 +605,8 @@ public: template #ifndef BOOST_FUNCTION_NO_ENABLE_IF typename detail::function::enable_if< - (::boost::type_traits::ice_not::value>::value), + (::boost::type_traits::ice_not< + (is_same::value)>::value), self_type&>::type #else self_type&