|
Boost : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-11-10 09:09:52
On Sunday 10 November 2002 04:19 am, Paul Mensonides wrote:
> ----- Original Message -----
> From: "Aleksey Gurtovoy" <agurtovoy_at_[hidden]>
>
> > With the cleaned up "type deduction success/error?/failure garbage" :)
>
> Here's a detector for operator(). It isn't perfect because you have to
> specify the type of the function, but it's better than nothing:
Unfortunately, that isn't enough to create is_callable :(. We need to be able
to detect if _any_ operator() exists: we can't know the type and it has to
work when operator() is overloaded or is a template. Once we know that
operator() exists, implementing the rest of is_callable is doable.
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk