Boost logo

Boost :

Subject: Re: [boost] [GSoC][Phoenix3] Regarding mutability of arguments passed to phoenix expressions
From: David Abrahams (dave_at_[hidden])
Date: 2010-06-12 14:04:20


At Fri, 11 Jun 2010 12:36:56 -0400,
Eric Niebler wrote:
>
> On 6/11/2010 12:27 PM, David Abrahams wrote:
> > At Fri, 11 Jun 2010 12:12:27 -0400,
> >>
> >> That gives us an opportunity to add a new feature to Phoenix: default
> >> capture modes. I could see something like:
> >>
> >> ref[ phoenix-lambda-expression ]
> >>
> >> makes default capture by-ref, and
> >>
> >> val[ phoenix-lambda-expression ]
> >
> > I would be cautious about emulating C++0x lambdas. I'm not sure yet
> > that they don't suck.
>
> They suck, but not for this reason. ;-)

I don't know. The more I learn about the capture rules, suckier they
seem.

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