|
Boost : |
Subject: Re: [boost] [functional] Interested in can_be_called<F, Sig> metafunction?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-11-04 14:23:29
On 04/11/2012 14:15, TONGARI wrote:
> Hi there,
>
> I've used this metafunction for some time, and it just fitted my need.
> Recently, I make up my mind to complete it, willing to put it in public.
>
> Synopsis
> --------------
> can_be_called<F, Sig>
>
> F
> Any callable type to test, even member-function ptr.
> Sig
> The desired calling signature, function-type only.
Personally, I've found it more useful to just not define
result_of<F(args)>::type if F(args) cannot be called.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk