The liabilities of binding rvalues to ref

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu May 9 12:43:25 PDT 2013


On 5/9/13 3:39 PM, Rob T wrote:
> So, if I understand correctly, auto ref for templates will end up doing
> exactly the same thing as auto ref for non-template functions? That
> would be perfect, otherwise it'll be terribly confusing.

There would be clear restrictions on non-template functions, e.g. a 
non-template cannot return auto ref.

Andrei



More information about the Digitalmars-d mailing list