RE: [Boost-Users] boost lambda examples
3 Sep
2003
3 Sep
'03
11:53 a.m.
Hi Matt
for_each( v.begin(), v.end(), cout << *_1 << '\n' );
I get the following errors: That only makes sense with vector
... as per the example, from memory... I think you meant vp.begin() etc.
Yes, that's it! So what I actually wanted was: for_each( v.begin(), v.end(), cout << _1 << '\n' ); That'll teach me copy code from two different examples without applying my brain to it. Thanks, Matt! Regards Paul Paul Grenyer Email: pjgrenyer@iee.org Web: www.paulgrenyer.co.uk You cant buy time, but you can sell your soul and the closest thing to heaven is to Rock n' Roll.
7739
Age (days ago)
7739
Last active (days ago)
0 comments
1 participants
participants (1)
-
Paul Grenyer