forked from boostorg/type_traits
Added some explanetary comments
[SVN r12148]
This commit is contained in:
@ -24,6 +24,10 @@
|
||||
#endif
|
||||
//
|
||||
// is a type a function?
|
||||
// Please note that this implementation is unnecessarily complex:
|
||||
// we could just use is_convertible<T*, const volatile void*>::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<T*, const volatile void*>::value));
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user