28 Sep
2010
28 Sep
'10
8:27 p.m.
De : Igor R
De: Suresh Kumar>
#include
#include #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?
There is also: http://www.boost.org/doc/libs/1_43_0/doc/html/lambda/le_in_details.html#lamb...