[Issue 8204] Alias causes error: "auto can only be used for template function parameters"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 7 11:32:53 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=8204
--- Comment #5 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
That was my point. Instead of resolving to a single instantiation of the
template, we could instantiate all possible ref/non-ref permutations and alias
bar to the resultant overload set. Of course, when I think a bit more about
that, the number of possible instantiations may well be too damn high.
The correct solution here is to issue a better error message.
--
More information about the Digitalmars-d-bugs
mailing list