From dc14c35c387d4af49f687261c1ebca95163c19d6 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 7 May 2004 11:43:41 +0000 Subject: [PATCH] function_base.hpp: - Fix silly typo where it returned "false" instead of the NULL pointer. [SVN r22760] --- include/boost/function/function_base.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 21cc2f5..dddc451 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -400,7 +400,7 @@ public: detail::function::any_pointer result = manager(detail::function::make_any_pointer(&typeid(Functor)), detail::function::check_functor_type_tag); - if (!result.obj_ptr) return false; + if (!result.obj_ptr) return 0; else { typedef typename detail::function::get_function_tag::type tag; return get_functor_pointer(tag(), 0); @@ -415,7 +415,7 @@ public: detail::function::any_pointer result = manager(detail::function::make_any_pointer(&typeid(Functor)), detail::function::check_functor_type_tag); - if (!result.obj_ptr) return false; + if (!result.obj_ptr) return 0; else { typedef typename detail::function::get_function_tag::type tag; return get_functor_pointer(tag(), 0);