Subject: Re: [boost] [proto] Can't use functions in expressions?
From: Eric Niebler (eric_at_[hidden])
Date: 2011-09-02 13:06:43
On 9/1/2011 1:05 PM, John Maddock wrote:
>>> BTW I couldn't find any examples of using proto::function in a
>>> grammar, it wasn't obvious to me what it's template arguments
>>> should be, or indeed whether this actually enabled the function
>>> call operator rather than my use case?
>> Just keep in mind, that proto::function is a expression that can
>> have variadic children. The first is the function expression, and
>> the remaining the function arguments. proto::vararg might help
> Got it, this needs to be documented under
> though, and an example wouldn't harm either ;-)
You're right. I can't get to this now, but if you file a ticket, I'll
get to it eventually.
-- Eric Niebler BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk