
27 Aug
2004
27 Aug
'04
12:43 p.m.
zaufi wrote:
Hi, everybody!
We've got a problem with a following code that does not compile:
#include <list> #include <algorithm> #include <boost/lambda/bind.hpp>
int main() { using namespace boost::lambda;
std::list<std::list<int> > l; bool some_are_empty = false;
std::for_each(l.begin(), l.end(), var(some_are_empty) = bind(&std::list<int>::empty, _1) || some_are_empty);
return 0; }
You forgot to include <boost/lambda/lambda.hpp>, where operator|| is defined.