Argument not match

Li Jie cpunion at gmail.com
Wed Mar 15 20:01:07 PST 2006


CODE:
-------------------------
template Test(T)
{
void Test(char[] name, T value)
{
writefln("Test");
}
}

// in main
Test("hello", 5);
-------------------------

Compile it, I get some errors:
main.d(73): template main.Test(T) does not match any template declaration
main.d(73): template main.Test(T) cannot deduce template function from argument
types (char[5],int)

Does not support this?


and... Can I subscibe this news group? my network speed is very slowly for this
site.



Thanks,

- Li Jie





More information about the Digitalmars-d mailing list