Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto] callable_context
From: Eric Niebler (eric_at_[hidden])
Date: 2011-01-04 11:43:46


On 1/4/2011 10:43 AM, Hossein Haeri wrote:
> Eric,
>
>>> 1 >> &f >> &g >> &h
>>>
>>> where f, g, and h are ordinary functions. Is that also
>> doable in Proto?
>>
>> No. It's not doable in C++, period. There are no UDTs in the above
>> expression, so no operator overloads are considered.
>
> Oops! OK, I meant something like this:
>
> lit(1) >> &f >> &g >> &h
>
> So, what about this new one in Proto?

Yes, that should be doable.

-- 
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