Boost logo

Boost Users :

Subject: Re: [Boost-users] [FunctionTypes] function_arity for non-built-ins
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-05 19:38:30


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


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