function.hpp:

- When determining if a type is a function type, don't blindly add a pointer
    but instead use add_pointer


[SVN r14586]
This commit is contained in:
Douglas Gregor
2002-07-24 13:27:49 +00:00
parent 9db8577d16
commit 4f5147f96e

View File

@ -22,6 +22,7 @@
#include <boost/function/function_base.hpp> #include <boost/function/function_base.hpp>
#include <boost/type_traits/function_traits.hpp> #include <boost/type_traits/function_traits.hpp>
#include <boost/type_traits/same_traits.hpp> #include <boost/type_traits/same_traits.hpp>
#include <boost/type_traits/transform_traits.hpp>
#include <boost/type_traits/ice.hpp> #include <boost/type_traits/ice.hpp>
#include <boost/function/function0.hpp> #include <boost/function/function0.hpp>
#include <boost/function/function1.hpp> #include <boost/function/function1.hpp>
@ -548,7 +549,7 @@ namespace boost {
class get_function_impl class get_function_impl
{ {
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
typedef function_traits<InR*> traits; typedef function_traits<typename add_pointer<InR>::type> traits;
public: public:
typedef typename ct_if<(is_function<InR>::value), typedef typename ct_if<(is_function<InR>::value),