On Tue, Sep 28, 2010 at 1:47 PM, Eric MALENFANT <Eric.Malenfant@sagem-interstar.com> wrote:
De : Suresh Kumar
> Eric MALENFANT wrote:
>       De : Igor R
>       >
>       > 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
> #lambda.rvalues_as_actual_arguments
>
> But then how to go about?

About what?

If you refer to Igor's reply, read http://www.boost.org/doc/libs/1_43_0/doc/html/lambda/le_in_details.html#lambda.function_pointers_as_targets

If you refer to mine, read the 4 suggestions made in the paragraph the link I sent points to.


the following worked: thanks to all.
cout << (bind(static_cast<double(*)(double)>(&fabs),(_1-_2)))(2,3) ;

But is there any other way?
thanks
suresh

--
R Suresh Kumar,
http://www.ee.ucr.edu/~sramachandranna
Sarve bhavantu sukinaha (May everyone be happy)
Sarve santu niramiyaha (May everyone be without affliction)
Sarve bhadrani pashyantu (May everyone see only goodness)
Ma kashchit dukha bhak bhavet (Let none be the victim of suffering)