a question on boost::is_function
should the following code return: true or false?
boost::is_function
On Jan 5, 2005, at 11:12 AM, Kevin Lee wrote:
should the following code return: true or false?
boost::is_function
::value if the result is false, why? I don't understand it.
It should be false. You're passing in a function pointer type, not a
function type. The following would be true:
boost::is_function
Kevin Lee wrote:
should the following code return: true or false?
boost::is_function
::value
false.
if the result is false, why? I don't understand it.
That's a pointer-to-function type, not a function type. Try
boost::is_function
On Jan 5, 2005, at 11:12 AM, Kevin Lee wrote:
should the following code return: true or false?
boost::is_function
::value if the result is false, why? I don't understand it. if the result is true, the code of boost_1_32_0/libs/type_traits/test/is_function_test.cpp line 42 expect it to be false.
could someone help me with this?
int (*)(int) is a pointer, not a function.
boost::is_pointer
participants (4)
-
David Abrahams
-
Douglas Gregor
-
Howard Hinnant
-
Kevin Lee