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-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at