Template method and overloading
gerleim
elf_qt at _deletethisifyouarenotaspammer_yahoo.com
Tue May 29 12:14:23 PDT 2007
Why
"template test.A.Foo(T) conflicts with test.A.Foo(T) at ..."
?
public class A
{
public void Foo(T)(T p1)
{
}
public void Foo(T)(T p1, bool b)
{
}
}
The two methods has different signatures.
I'm not really familiar with c++ templates, but c#/.net can handle this.
What's the reason behind this, and will the behaviour change?
Thanks,
gerleim
More information about the Digitalmars-d-learn
mailing list