Pedro Lamarão wrote:
None of the candidate functions in the overload set, as given in the error diagnostic, take rvalues as arguments.
That's what I've thought. But if we use boost::bind in this example it would compile. IMHO I think using rvalues should be accepted because it's a common use case, and I doubt the standard would say otherwise. The bind's return functor should forward the arguments to the functor associated with it, so it should accept rvalues as well.
Regards, Rodolfo Lima. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus