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;
}