Function template arg promotion

Artur Skawina art.08.09 at
Fri Feb 3 14:12:21 PST 2012

On 02/03/12 17:39, Daniel Murphy wrote:
> void set_from_4ub(dummy = int)(ubyte red, ubyte green, ubyte blue, ubyte 
> alpha) { }
> ??
> (not tested) 

That doesn't change anything; the issue is: the "int" literals wont
implicitly convert to ubyte, even when there is no better match and
an assignment would succeed.


More information about the Digitalmars-d mailing list