Boost logo

Boost :

Subject: Re: [boost] [function_types] is there an equivalent for functors?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-07-05 14:27:54


On 07/05/10 12:59, Jeffrey Lee Hellrung, Jr. wrote:
> On 7/5/2010 10:46 AM, Edd Dawson wrote:
[snip]
> You can, however, get away with querying whether a function object can
> be called with a specific signature, though the machinery to do this is
> relatively complex. I think something working is found in Boost.Proto
> as "can_be_called".

If you can use the gcc variadic template compiler, then this:

http://preview.tinyurl.com/2453536

which is a variadic can_be_called, might be useful.

-regards,
Larry


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