diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 0ea7604..635dc62 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -404,7 +404,7 @@ public: // should be protected, but GCC 2.95.3 will fail to allow access private: template Functor* get_functor_pointer(detail::function::function_ptr_tag, int) - { return &reinterpret_cast(functor.func_ptr); } + { return reinterpret_cast(&functor.func_ptr); } template Functor* get_functor_pointer(Tag, long) @@ -413,7 +413,7 @@ private: template const Functor* get_functor_pointer(detail::function::function_ptr_tag, int) const - { return &reinterpret_cast(functor.func_ptr); } + { return reinterpret_cast(&functor.func_ptr); } template const Functor* get_functor_pointer(Tag, long) const