auto ref function parameters in a free function
Vlad Levenfeld via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 3 12:07:30 PDT 2014
This doesn't work:
bool less_than (T)(auto ref T a, auto ref T b)
{
return a < b;
}
Error: auto can only be used for template function parameters
What am I doing wrong? Is this not a template function?
More information about the Digitalmars-d-learn
mailing list