Should the compiler be failing to infer template args here?
Paul Backus
snarwin at gmail.com
Fri Jun 19 16:31:50 UTC 2020
On Friday, 19 June 2020 at 16:16:55 UTC, SealabJaster wrote:
> If you take a look at this code here:
> https://godbolt.org/z/4T3uLh
>
> You can see that when using a templated alias, the compiler
> fails to infer the T template parameter, but only when using
> the function that also asks for the alias, instead of the
> original type.
>
> I was just wondering if this is correct behavior, since it's a
> slightly annoying, but easy to deal with difference.
This is a known issue:
https://issues.dlang.org/show_bug.cgi?id=1807
More information about the Digitalmars-d-learn
mailing list