From 66cd32b56574d443ad91d961f1f434b11641afbd Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 10 Sep 2003 04:16:17 +0000 Subject: [PATCH] NULL pointers can be of any integral type, not just int (Howard Hinnant) [SVN r19989] --- include/boost/function/detail/prologue.hpp | 2 +- include/boost/function/function_template.hpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/function/detail/prologue.hpp b/include/boost/function/detail/prologue.hpp index 5960134..524f710 100644 --- a/include/boost/function/detail/prologue.hpp +++ b/include/boost/function/detail/prologue.hpp @@ -21,7 +21,7 @@ # include # include # include -# include +# include # include # include # include diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index dce0b00..dd8f199 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -285,7 +285,7 @@ namespace boost { #ifndef BOOST_FUNCTION_NO_ENABLE_IF ,typename detail::function::enable_if< (::boost::type_traits::ice_not< - (is_same::value)>::value), + (is_integral::value)>::value), int>::type = 0 #endif // BOOST_FUNCTION_NO_ENABLE_IF ) : @@ -338,7 +338,7 @@ namespace boost { #ifndef BOOST_FUNCTION_NO_ENABLE_IF typename detail::function::enable_if< (::boost::type_traits::ice_not< - (is_same::value)>::value), + (is_integral::value)>::value), BOOST_FUNCTION_FUNCTION&>::type #else BOOST_FUNCTION_FUNCTION& @@ -594,7 +594,7 @@ public: #ifndef BOOST_FUNCTION_NO_ENABLE_IF ,typename detail::function::enable_if< (::boost::type_traits::ice_not< - (is_same::value)>::value), + (is_integral::value)>::value), int>::type = 0 #endif ) : @@ -620,7 +620,7 @@ public: #ifndef BOOST_FUNCTION_NO_ENABLE_IF typename detail::function::enable_if< (::boost::type_traits::ice_not< - (is_same::value)>::value), + (is_integral::value)>::value), self_type&>::type #else self_type&