Value Range Propagation with generic and specialized function

Etienne via Digitalmars-d digitalmars-d at puremagic.com
Thu May 22 17:04:00 PDT 2014


On 2014-05-22 7:37 PM, Wagner Macedo wrote:
>
>           fun(1);
>           fun(1L);
>           fun!(long)(1L);

Non-template functions are preferred over template, they have priority 
even when it's done with implicit conversion.

This is the case for C++ as well.

http://stackoverflow.com/questions/10291405/priority-between-normal-function-and-template-function


More information about the Digitalmars-d mailing list