Boost logo

Boost Users :

From: Kobi Cohen-Arazi (kobi.cohenarazi_at_[hidden])
Date: 2007-12-07 12:35:47


Hi Folks,

What's wrong with the following simple approach:

---- Start code ----

using boost::lambda;

int a[10]
std::for_each(a, a+10, std::cout << _1);

---- End code ----

It doesn't compile.
What am I missing here?

Thanks,

-- 
- Kobi

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net