Deducing types from member function template
%u JScott
jrs7561 at louisiana.edu
Sun Dec 3 16:24:28 PST 2006
I think as of right now the template args of a function must match exactly to the
function args for it to be implicitly called, like so:
void func(T)(T t){}
I'm writting some matrix math routines myself so I tried to find a solution / work
around, but came up empty. I think it's a reasonable feture request. Or maybe the
ability to do something like this:
Matrix!(T,R,C2) opMul(Matrix!(T,R,int C2) M){}
More information about the Digitalmars-d-learn
mailing list