[Issue 13663] New: Comparison of Tuples with floating point fields
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Oct 29 02:26:53 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13663
Issue ID: 13663
Summary: Comparison of Tuples with floating point fields
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: r.97all at gmail.com
A Tuple with only component nan is greater than itself.
unittest
{
import std.typecons;
real x;
auto t = tuple(x);
assert (t > t);
assert (!(t < t));
}
--
More information about the Digitalmars-d-bugs
mailing list