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?
Vlad Levenfeld via Digitalmars-d-learn Sun, 03 Aug 2014 12:10:26 -0700
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?