
6 Jan
2011
6 Jan
'11
1:38 p.m.
Hi Steven,
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.
That's not a matter for my application; if my code can check whether the function object does have a certain arity, then I'm fine. So, following the example of std::plus<> above, it would be nice if I can write something like: arity_set_contains<std::plus<double>, 2>::value What about this one then? TIA, --Hossein