30 Dec
2008
30 Dec
'08
12:09 a.m.
I have managed to fix this by using ret<>() to specify the type that I want my lambda function to return. Now I have: for_each(vect.begin(), vect.end(), var(str) += ret<string>(_1+constant(", ")) ); And it compiles and works fine.