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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 14 08:52:24 PDT 2013


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



--- Comment #25 from Martin Nowak <code at dawg.eu> 2013-03-14 08:52:21 PDT ---
I find the C++ rule pretty plausible.

> In most cases a function template behaves just like a normal function when
> considering overload resolution. The template argument deduction is
> applied, if it succeeds, the function is added to the candidates set. Such
> a function is handled like any other function, except when two viable
> functions are equally good, the non-template one is selected. In case both
> are a specialisation of a function template, partial ordering rules are
> applied. The partial ordering rules are out of the scope of this article.

http://accu.org/index.php/journals/268#d0e340

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