[Issue 3467] Non-int integral template parameters not correctly propagated
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 10 05:23:08 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3467
klickverbot <code at klickverbot.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |code at klickverbot.at
--- Comment #9 from klickverbot <code at klickverbot.at> 2011-12-10 05:23:02 PST ---
(In reply to comment #6)
> There are two solutions:
> 1. Makes that instantiation invalid.
> 2. Promote signed integer template value parameter into unsigned.
>
> My patch implements #2, and I believe that is correct.
> Because non-suffix integer literal can implicitly convertible to unsigned.
>
> And, my patch doesn't break existing code around template overloading.
I agree. For an integer _value_ (and this is what we are talking about here),
distinguishing between 3 and 3u just makes no sense.
--
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