From 57c83a61e5e639b4315ffbea075f56fd97b204b9 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 27 Dec 2001 12:21:24 +0000 Subject: [PATCH] Fixed eroneous comment [SVN r12153] --- include/boost/type_traits/function_traits.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/type_traits/function_traits.hpp b/include/boost/type_traits/function_traits.hpp index 923eaf8..df09845 100644 --- a/include/boost/type_traits/function_traits.hpp +++ b/include/boost/type_traits/function_traits.hpp @@ -25,7 +25,7 @@ // // is a type a function? // Please note that this implementation is unnecessarily complex: -// we could just use is_convertible::value, +// we could just use !is_convertible::value, // except that some compilers erroneously allow conversions from // function pointers to void*. // @@ -107,7 +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)); + //BOOST_STATIC_CONSTANT(bool, value = (!::boost::is_convertible::value)); }; #endif