Variadic template parameters T... bounding

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 2 06:55:42 PST 2016


On Tuesday, 2 February 2016 at 14:47:43 UTC, Marc Schütz wrote:
> On Tuesday, 2 February 2016 at 14:12:54 UTC, Daniel Kozak wrote:
>> On Tuesday, 2 February 2016 at 13:57:54 UTC, Marc Schütz wrote:
>>> On Tuesday, 2 February 2016 at 13:52:55 UTC, Marc Schütz 
>>> wrote:
>>>> The last call should work IMO, but it doesn't. I believe 
>>>> that's a compiler bug.
>>>
>>> Filed:
>>> https://issues.dlang.org/show_bug.cgi?id=15640
>>
>> I would say it is not a bug
>> test!A(new B(), new C()); // works
>> which is what I expected
>
> if you mix ints and floats, the common type is deduced 
> correctly:

this is a bug for me :). I do not like this. I am ok with (u)byte 
to int conversion and similar, but mixing float and integral 
types does not seems to be OK.


More information about the Digitalmars-d-learn mailing list