But it only really makes sense in the context of templates...?<div>Why should something called 'auto ref' provide fabrication of temporaries for the purpose of passing rvalues to functions that receive ref args?</div>
<div><br></div><div>How does auto ref (under some different definition/implementation) address the rvalue problem?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 November 2012 23:08, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tuesday, November 06, 2012 20:40:38 Manu wrote:<br>
> Yeah I really don't understand how 'auto ref' entered this conversation? It<br>
> completely misses the point.<br>
<br>
</div>The _entire_ reason that auto ref was introduced in the first place was to<br>
solve the const ref problem. That's what it's for. It wouldn't exist otherwise. So,<br>
it's completely relevant to any discussion of const ref.<br>
<br>
However, Walter misunderstood what Andrei meant by the feature, so it only got<br>
implemented for templates, and given how Walter implemented it, it _can't_ be<br>
implemented with non-templated functions. But it could be implemented with slightly<br>
different semantics such that it solves the const ref problem as orignally intended.<br>
It's just that it would then have slightly different semantics between templated<br>
and non-templated functions.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Jonathan M Davis<br>
</font></span></blockquote></div><br></div>