On 6/21/15 10:08 PM, Steven Schveighoffer wrote:
On 6/22/15 12:11 AM, Andrei Alexandrescu wrote:
Walter and I discussed what auto ref for templates
You mean *non-templates*? auto ref for templates has a very well defined
meaning.
Yes, non-tempaltes.
And reading your post, I'm unclear what exactly happens. Does this
generate 2 functions from one, and then call the wrapper for auto-ref?
So for instance:
ref int fun(auto ref int x);
What happens here?
auto x = &fun;
x(5);
What you'd expect after lowering: error.
Andrei