Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-05-12 16:54:13


On Sunday 12 May 2002 01:21 pm, you wrote:
> > I don't know if is_callable can be written to handle arbitrary function
> > objects.
>
> Well good luck with your research. It would really be a cool addition to
> Boost.
> But I don't really see how this could work at all without partial
> specialization.
> (Workarounds for partial specialization can't do the job in this case
> AFAIK.)
> BTW, in contrast to my make_function, this is_callable template could be
> made
> to work with the result of a Boost.Bind right? (And Boost.Lambda???)
>
> Dirk Gerrits

It isn't a partial specialization problem, because it's easy to pick out the
arity of the function pointer or member function pointer without partial
specialization. See what Dave Abrahams posted:

> before this goes too much further, please see:
>
> boost/python/detail/arg_tuple_size.hpp
> boost/python/preprocessed/arg_tuple_size.hpp
>
> Enjoy,
> Dave

        Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk