Boost logo

Boost Users :

Subject: Re: [Boost-users] [FunctionTypes] Testing for a general callable type.
From: Eric Niebler (eniebler_at_[hidden])
Date: 2013-03-26 01:44:07


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.

-- 
Eric Niebler
Boost.org



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