On 5/5/13 3:00 AM, Jonathan M Davis wrote:
On Sunday, May 05, 2013 01:49:42 Andrei Alexandrescu wrote:
There may be other important patterns to address at the core, please
chime in. I consider (1) above easy to tackle, which leaves us with at
least (2). My opinion is that any proposal for binding rvalues to ref
must offer a compelling story about these patterns.

Another case is when you want to distinguish between lvalues and rvalues.

Good one. This is in fact what happened in C++: const T& binds so tightly to T rvalues, that it was impossible to work a wedge in between to allow overloading on T and on const T&. Therefore, a much heavier solution was needed.

Andrei


Reply via email to