
25 Nov
2011
25 Nov
'11
4:01 p.m.
On 11/25/2011 11:49 PM, Steven Watanabe wrote:
AMDG
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? Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com