
29 Dec
2008
29 Dec
'08
4:14 p.m.
On Mon, Dec 29, 2008 at 03:31, Swidan, Firas
for_each(idx.begin(), idx.end(), var(v)[_1].i = 1);
This does not compile though, because lambda_functor has no member named i.
I think you always have to use bind with members: for_each(idx.begin(), idx.end(), bind(&tr::i, var(v)[_1]) = 1); Hope that works, ~ Scott