Boost logo

Boost Users :

Subject: Re: [Boost-users] [FunctionTypes] function_arity for non-built-ins
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2011-01-06 08:38:26


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


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