rvalue references
Timon Gehr via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jun 3 12:47:07 PDT 2015
On 06/02/2015 11:21 PM, Andrei Alexandrescu wrote:
>>
>
> Yah, auto ref for templates is great. We only need to add auto ref for
> non-templates with the semantics "like ref, except (a) accepts rvalues
> on the caller side, (b) does not allow escaping the ref from the function".
>
What if one wants those semantics for some template function parameters?
It seems arbitrary to introduce this feature for all functions except
templated ones.
More information about the Digitalmars-d
mailing list