Upgrading a codebase from 2.065 to 2.066
Iain Buclaw via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jul 7 23:02:41 PDT 2014
On 2 July 2014 23:34, Brian Schott via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> 4. isNaN is now a template. This broke some templated code that would
> (depending on template instantiations) rely on uint being converted to real.
> The new isFloatingPoint template constraint kept this from compiling. I
> ended up placing a static if around our call to isNaN to work around this.
> Maybe it would be useful to add a template specialization for isNaN that
> checks isNumeric && !isFloatingPoint and always returns false.
>
I would ask why are you passing integers to isNaN.
And I would also give you some heads up on other stuff...
https://github.com/D-Programming-Language/phobos/pull/2305
More information about the Digitalmars-d
mailing list