On Mar 10, 9:06 am, Rodolfo Lima <[EMAIL PROTECTED]> wrote:
> Hi, I'm playing a little bit with std::tr1::bind and found that the
> following code doesn't compile:
>
> bind(std::multiplies<int>(), _1, bind(std::minus<int>(), 6, _2))(1,2);
>
> but the following does:
>
> int one=1, two=2;
> bind(std::multiplies<int>(), _1, bind(std::minus<int>(), 6, _2))(one,two);

None of the candidate functions in the overload set, as given in the
error diagnostic, take rvalues as arguments.

I'm not familiar with tr1::bind to know if this is correct behaviour
or not.

--
 P.

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to