|
Boost Users : |
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2008-04-07 14:06:38
Hi,
these snipped doesn't compile, but why?
---8<---
#include <iostream>
#include <boost/array.hpp>
#include <boost/lambda/lambda.hpp>
int main()
{
using namespace ::boost::lambda;
boost::array<double, 10> values;
for_each( values.begin(), values.end(), _1 = 2.0 );
for_each( values.begin(), values.end(), std::cout << _1 << '\n');
}
--->8---
error: 'for_each' was not declared in this scope
using std::list compiles and works. Did I miss something?
Thanks,
Olaf
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