[Issue 1263] Template function overload fails when overloading on both template and non-template class
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 10 17:21:52 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1263
------- Comment #1 from dhaffey at gmail.com 2007-06-10 19:21 -------
It appears to behave similarly with aliased template instantiations:
class B() {}
class C() {}
alias C!() D;
void foo()(B!()) {}
void foo()(C!()) {}
//void foo()(D) {}
void main()
{
foo(new B!()); // error if D overload is used instead of C
}
--
More information about the Digitalmars-d-bugs
mailing list