Templated Function can't deduce function arguments
Jonathan Crapuchettes
jcrapuchettes at gmail.com
Wed May 22 18:16:44 PDT 2013
Can anyone tell me why this doesn't compile? Dmd 2.062 says that it
cannot deduce the template function from arguments types.
import std.stdio;
void main()
{
test!(dchar, int)('b', 6, 'a', 54);
}
template test(Types...)
{
void test(T...)(const Types v, const T values...)
{
writefln("%s,%s", v);
foreach (s; values)
writefln("%s,%s", s);
}
}
Thank you,
Jonathan
More information about the Digitalmars-d-learn
mailing list