Function template arg promotion

Daniel Murphy yebblies at nospamgmail.com
Fri Feb 3 19:09:41 PST 2012


Ah ok, I just guessed.  It sounds like you've hit 
http://d.puremagic.com/issues/show_bug.cgi?id=4953

"Artur Skawina" <art.08.09 at gmail.com> wrote in message 
news:mailman.343.1328308873.25230.digitalmars-d at puremagic.com...
> 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.
>
> artur 




More information about the Digitalmars-d mailing list