function_base.hpp:

- Fix silly typo where it returned "false" instead of the NULL
    pointer.


[SVN r22760]
This commit is contained in:
Douglas Gregor
2004-05-07 11:43:41 +00:00
parent 1b27dc8f86
commit dc14c35c38

View File

@ -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<Functor>::type tag;
return get_functor_pointer<Functor>(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<Functor>::type tag;
return get_functor_pointer<Functor>(tag(), 0);