Annoying thing about auto ref function template

Yuxuan Shui via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 20 12:50:42 PDT 2017


On Monday, 20 March 2017 at 19:49:03 UTC, Yuxuan Shui wrote:
> And you can't do that with an auto ref template, which makes 
> them quite annoying.
>

BTW, the error message you get when you try to do this, is not 
very helpful:

'auto' can only be used as part of 'auto ref' for template 
function parameters





More information about the Digitalmars-d mailing list