help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nested std::tr1::bind problem


From: Rodolfo Schulz de Lima
Subject: Re: Nested std::tr1::bind problem
Date: Tue, 11 Mar 2008 16:51:41 -0300
User-agent: Thunderbird 2.0.0.12 (X11/20080227)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]