
28 Sep
2010
28 Sep
'10
8:10 p.m.
#include <boost/lambda/lambda.hpp> #include <boost/lambda/bind.hpp> #include <cmath> #include <iostream> using namespace boost::lambda; using namespace std; int main(){ cout << (bind(fabs,(_1-_2)))(2,3) << endl; //to print the abs diff of 2 arguments }
First of all, doesn't fabs have several overloads?