Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto] Anything Callable
From: Eric Niebler (eric_at_[hidden])
Date: 2011-01-14 08:52:58


On 1/14/2011 8:32 PM, Joel Falcou wrote:
> On 14/01/11 14:08, Hossein Haeri wrote:
>> Dear all,
>>
>> How can I have a grammar that matches a terminal of any callable type?
>> Be it a function, function object, or a Boost.Function (specifically).
>
> Hmmm, IIRC proto has a can_be_called metafunction, dunno how far it
> reaches in term of detection of possible corner cases.
> BTW Eric, any objection to extract can_be_called to merge in
> boost.traits ? I think it is really useful externally.

See https://svn.boost.org/trac/boost/ticket/3783

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

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