$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] lambda/bind compiler error
From: Igor R (boost.lists_at_[hidden])
Date: 2010-09-28 16:10:26
> #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?