Boost logo

Boost Users :

From: Douglas Gregor (dgregor_at_[hidden])
Date: 2005-01-05 12:05:15


On Jan 5, 2005, at 11:12 AM, Kevin Lee wrote:

> should the following code return: true or false?
>
> boost::is_function<int (*)(int)>::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<int(int)>::value

        Doug


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net