Boost logo

Boost Users :

Subject: Re: [Boost-users] [FunctionTypes] Testing for a general callable type.
From: TONGARI (tongari95_at_[hidden])
Date: 2013-03-26 10:06:14


2013/3/26 Eric Niebler <eniebler_at_[hidden]>

> On 13-03-22 06:15 AM, TONGARI wrote:
> > On 2013/3/22, Robert Jones wrote:
> >
> >> Hi All
> >>
> >> Is there anything in Boost to help me test for a general type
> >> being callable with a specific signature? I've found
> >> Boost.FuncionTypes, which seems to be confined to *builtin*
> >> callable types, but has made me aware that all the
> >> const/volatile/reference variations might make a general test more
> >> complicated than I first thought.
> >>
> >> Any pointers much appreciated.
> >>
> >> Thx,
> >
> > Just pushed to github: https://github.com/jamboree/boost.has_call
> >
> > (previous `can_be_called`)
>
> This appears to owe a debt to:
>
> http://www.boost.org/doc/libs/1_53_0/doc/html/proto/appendices.html#boost_proto.appendices.implementation.function_arity
>
> ... so you should have an attribution somewhere. Apologies if I missed it.
>

Noted.

https://github.com/jamboree/boost.has_call/commit/1c06c41c7d2f88102d61a869040c8cd351848392



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