
5 Jan
2011
5 Jan
'11
5:38 p.m.
AMDG On 1/5/2011 4:21 PM, Hossein Haeri wrote:
How can I calculate the arity of function-objects? Obviously, function_arity won't do the job for that's only for built-ins. For instance, I need something like:
function_types::function_object_arity<std::plus<double> >::value
Anything in Boost for that?
No. It can't be done, because a function object doesn't necessarily have a unique arity. In Christ, Steven Watanabe