Boost logo

Boost :

Subject: Re: [boost] New libraries implementing C++11 features in C++03
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-11-25 11:01:38

On 11/25/2011 11:49 PM, Steven Watanabe wrote:
> On 11/25/2011 04:24 AM, Joel de Guzman wrote:
>> Now, how about error messages. Here's the lambda part:
>> std::for_each(vec.begin(), vec.end(), plus4(_1, b, l, s));
>> You'd have to be absurdly dumb to get that wrong!
> You keep saying this, but I find it really hard
> to believe. My experience is that *nothing* is
> so simple that you can't get it wrong.

Ok, agreed. Pardon the wording. It's a passionate exaggeration.
Let me rephrase that into something more positive:

   std::for_each(vec.begin(), vec.end(), plus4(_1, b, l, s));

--> It's reasonably easy to get that right.

Modest enough?


Joel de Guzman

Boost list run by bdawes at, gregod at, cpdaniel at, john at