[Issue 3576] Can't overload explicitly instantiated template functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 6 03:08:43 PST 2009


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |WONTFIX


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2009-12-06 03:08:42 PST ---
I know there was this change, but before it was a bit erratic what it did. I'll
argue that the compiler is correctly saying it's an error.

Code can decide to do template function type inference, or overloading, but not
both at the same time. By not specifying enough in the specialization, then
inference rules are applied.

Trying to do both inference and overloading results in a complicated morass.
Better to leave it an error.

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