
1 Oct
2007
1 Oct
'07
2:49 p.m.
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.