From 894e2e1beb9cb520a377819a5ac32a2e215bcb4b Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 26 Dec 2001 11:19:38 +0000 Subject: [PATCH] Added some explanetary comments [SVN r12148] --- include/boost/type_traits/function_traits.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/type_traits/function_traits.hpp b/include/boost/type_traits/function_traits.hpp index b336c78..923eaf8 100644 --- a/include/boost/type_traits/function_traits.hpp +++ b/include/boost/type_traits/function_traits.hpp @@ -24,6 +24,10 @@ #endif // // is a type a function? +// Please note that this implementation is unnecessarily complex: +// we could just use is_convertible::value, +// except that some compilers erroneously allow conversions from +// function pointers to void*. // namespace boost{ namespace detail{ @@ -103,6 +107,7 @@ struct is_function_helper { static T* t; BOOST_STATIC_CONSTANT(bool, value = sizeof(is_function_tester(t)) == sizeof(::boost::type_traits::yes_type)); + //BOOST_STATIC_CONSTANT(bool, value = (::boost::is_convertible::value)); }; #endif