Boost logo

Boost Users :

Subject: Re: [Boost-users] Converting a BOOST_FOREACH to use the new c++ 11 lambda syntax
From: Lars Viklund (zao_at_[hidden])
Date: 2013-01-01 11:37:00


On Tue, Jan 01, 2013 at 05:09:58PM +0100, Mathias Gaunard wrote:
> On 01/01/13 16:34, Sean Farrow wrote:
>> I’m trying to convert a BOOST_FOREACH loop to use the new lambda syntax:
>
> Why don't you use C++11 range-for loops instead?

A wild guess is that lambdas have wider compiler support than range-for,
across the board.

Never underestimate the power of being able to target a wider set of
deployed compilers, even if they're inferior.

-- 
Lars Viklund | zao_at_[hidden]

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