[Issue 12117] Non-template overload taken when template matches better

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 9 05:13:01 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12117


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-09 05:12:59 PST ---
It likely has to do with the order of operations:

1) Try direct match of: type, then alias this, on regular function
2) Try direct match of: type, then alias this, on templated function

(I'm just speculating it works /something/ like this)

And the 'alias this' wins before a templated function is tried. I guess it's a
question of priority. We'll see what Kenji and others have to say.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list