Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2007-10-01 10:49:24


Kirit Sælensminde wrote:
> I'm wondering if finding the need to add specialisations of
> boost::detail::function_traits_helper is a result of missing headers,
> incorrect usage or just things that have not been added to
> Boost.TypeTraits on purpose?

Not added on purpose: function_traits works for *function types*, and not
*pointer to function types*.

So:

functions_traits<int(double)> OK.
function_traits<int(*)(double)> bad: argument not a function type.

You can always use remove_pointer to strip a function-pointer down to a
function type.

HTH, John.


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