|
Boost : |
Subject: Re: [boost] [proto] Can't use functions in expressions?
From: Thomas Heller (thom.heller_at_[hidden])
Date: 2011-09-01 13:23:53
On Thursday, September 01, 2011 06:05:27 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 here.
>
> Got it, this needs to be documented under
> http://www.boost.org/doc/libs/1_47_0/doc/html/boost/proto/function.html
> though, and an example wouldn't harm either ;-)
Have a look here:
http://www.boost.org/doc/libs/1_47_0/doc/html/proto/users_guide.html#boost_proto.users_guide.front_end.making_lazy_functions.making_lazy_functions__continued
>
> John.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk