From f54bd9f08d00a2a235997f9fb3cedc05d113e62e Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 13 Nov 2002 18:03:55 +0000 Subject: [PATCH] function_template.hpp: - Wrap ICEs in parentheses when used as template arguments [SVN r16225] --- include/boost/function/function_template.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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&