Template conflict with Function
Matthias Walter
walter at mail.math.uni-magdeburg.de
Wed Feb 13 02:10:34 PST 2008
Hello,
I've got another question regarding templates. I have the following functions:
int foo (int i)
{
}
int foo (T, U) (inout Expression !(T, U) expr)
{
}
The compiler stops with error: "template Test.foo(T,U) conflicts with function Test.foo at Test.d(191)".
I'd like to call them in the following way:
foo (10);
Expression !(long, int) x;
foo (x);
I also cannot put them into one function template, because the parameter storage class es differ.
best regards
Matthias Walter
More information about the Digitalmars-d-learn
mailing list