23 Mar
2021
23 Mar
'21
9:52 p.m.
Fletcher, John P wrote:
Hi
I did some tests with lambda2 some time ago and the review release seems to be the same. One of the useful things in the old lambda is this example:
for_each(a.begin(), a.end(), std::cout << _1 << ' ');
I could not get this to work with lambda2. I am not in a position to run my tests again at the moment. It would be good if this example did work.
Despite being deceptively simple, this is actually a pretty thorny example for lambda libraries.
Looks like I mentally replaced ' ' with std::endl in the above, sorry. :-)