26 Sep
2005
26 Sep
'05
2:13 p.m.
Hi all, I have been trying out boost::lambda for the first time, and I did encounter something which I can't seem to solve. Simplified, what I'd like to do amounts to this: list<int> intlist; // fill up list someway int n; for_each( intlist.begin(), intlist.end(), n = _1 ); Obviously, this fails because it implies a cast from placeholder to int, which isn't defined. Is there some way to do this using lambda? -- Alex Borghgraef