Do we need Mat, Vec, TMmat, Diag, Sym and other matrix types?

jmh530 john.michael.hall at gmail.com
Thu Mar 15 15:13:12 UTC 2018


On Thursday, 15 March 2018 at 05:04:42 UTC, 9il wrote:
> [snip]
>
> BTW, could you please help with the following issue?!
>
> struct S(int b, T)
> {
> }
>
> alias V(T) = S!(1, T);
>
> auto foo (T)(V!T v)
> {
> }
>
> void main()
> {
>     V!double v;
>     foo(v);
> }
>
> Error: template onlineapp.foo cannot deduce function from 
> argument types !()(S!(1, double)), candidates are:
> onlineapp.d(7):        onlineapp.foo(T)(V!T v)
>

This is issue 16486 [1], which is very similar to 16465 [1] and 
seems like should be closed.

[1] https://issues.dlang.org/show_bug.cgi?id=16486
[2] https://issues.dlang.org/show_bug.cgi?id=16465



More information about the Digitalmars-d mailing list