[Issue 1528] [tdpl] overloading template and non-template functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 14 15:56:37 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=1528



--- Comment #29 from timon.gehr at gmx.ch 2013-03-14 15:56:33 PDT ---
(In reply to comment #28)
> (In reply to comment #26)
> 
> It's not about the polysemous literals.
> What's irritating me is that a function call with conversion
> is preferred over a function template instantiation with
> exact arguments.
> 
> int f3(long) { return 1; }
> int f3(T)(T) { return 2; }
> 
> int v = 2;
> f3(v);
> 
> MATCHexact / MATCHconvert vs.
> MATCHconvert / MATCHexact

IMO the second should be MATCHexact / MATCHexact.

-- 
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