April 08, 2014 [Issue 6586] feqrel for const values too | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=6586 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx --- Comment #3 from hsteoh@quickfur.ath.cx 2014-04-08 13:23:49 PDT --- Tested on git HEAD: the original code now compiles, although I did find a different related failing case: ======Code:====== import std.math, std.stdio; void main() { const(double) a=1.0, b=2.0; writeln(feqrel(a, b)); } ======Compile:====== /usr/src/d/phobos/std/math.d(5394): Error: cannot modify const expression diff test.d(4): Error: template instance std.math.feqrel!(const(double)) error instantiating -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation