[Issue 22058] New: [Reg 2.074] std.traits.isNumeric & isSigned should not be true for complex or imaginary types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 21 07:38:36 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22058
Issue ID: 22058
Summary: [Reg 2.074] std.traits.isNumeric & isSigned should not
be true for complex or imaginary types
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: n8sh.secondary at hotmail.com
Below code fails from 2.074 onward:
---
import std.traits;
static assert(!isNumeric!ifloat);
static assert(!isNumeric!cfloat);
static assert(!isSigned!ifloat);
static assert(!isSigned!cfloat);
---
Note that in 2.074 isFloatingPoint remained false for ifloat and cfloat,
creating an inconsistency.
--
More information about the Digitalmars-d-bugs
mailing list