Boost logo

Boost Users :

From: Paul Grenyer (pjgrenyer_at_[hidden])
Date: 2003-09-03 06:53:12

Hi Matt

> > >for_each( v.begin(), v.end(), cout << *_1 << '\n' );
> >I get the following errors:
> That only makes sense with vector<int*>... 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!


Paul Grenyer
Email: pjgrenyer_at_[hidden]

You cant buy time, but you can sell your soul and the closest thing to
heaven is to Rock n' Roll.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at