Boost logo

Boost Users :

From: Peng Yu (pengyu.ut_at_[hidden])
Date: 2007-03-14 12:24:19


Hi,

It seems that the lambda manual lacks of a simple working example.

I'm made up the following example. But it's not working. Could you
please show me how to make it work?

Thanks,
Peng

#include <boost/lambda/lambda.hpp>
#include <boost/lambda/core.hpp>
#include <iostream>

using namespace boost::lambda;

int main() {
  std::cout << (_1 + _2)(10, 10) << std::endl;
}


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