
5 Jan
2005
5 Jan
'05
5:17 p.m.
Kevin Lee wrote:
should the following code return: true or false?
boost::is_function<int (*)(int)>::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<int(int)>::value I know it's confusing. Most C++ programmers never see a function type in the wild. You can use remove_pointer to turn a pointer-to-function into a function. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com