Bug 15561 – std.typecons.Proxy gets NaN comparisons wrong
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-13T01:42:00Z
Last change time
2016-03-19T20:22:21Z
Assigned to
nobody
Creator
john.loughran.colvin
Comments
Comment #0 by john.loughran.colvin — 2016-01-13T01:42:39Z
Let's see it in action in std.typecons.Typedef:
alias MyFloat = Typedef!float;
unittest
{
MyFloat a,b;
assert(a!=b);
assert(!(a<b));
assert(!(a>b));
assert(!(a>=b)); //fails
assert(!(a<=a)); //fails
}