[Issue 1650] Incorrect overload selected with IFTI
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 24 21:09:32 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1650
Witold Baryluk <baryluk at smp.if.uj.edu.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baryluk at smp.if.uj.edu.pl
--- Comment #12 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2010-01-24 21:09:31 PST ---
You should use probably something like this:
void proc(T : T[])(T[] val) {
}
Is there any reason this is still open?
I cheked documentation and there is such snippet:
void Foo(T, U=T*)(T t) { U p; ... }
int x;
Foo(&x); // T is int, U is int*
Well, for me it is strange that comment says "T is int", Foo is specialized and
recived T (int), but we give it a pointer. Something really wrong somewhere.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list