Thread overview | |||||
---|---|---|---|---|---|
|
April 11, 2011 [Issue 5837] New: Unable to format (writeln) an enum based on bool | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5837 Summary: Unable to format (writeln) an enum based on bool Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: kennytm@gmail.com --- Comment #0 from kennytm@gmail.com 2011-04-11 14:07:08 PDT --- Test program: ---------------- import std.stdio; enum A : bool { no, yes } void main () { writeln(A.no); } ---------------- This results in an error: /usr/include/phobos/std/format.d(1599): Error: template std.format.formatValue(Writer,T,Char) if (is(const(T) == const(void[]))) formatValue(Writer,T,Char) if (is(const(T) == const(void[]))) matches more than one template declaration, /usr/include/phobos/std/format.d(868):formatValue(Writer,T,Char) if (is(T == enum)) and /usr/include/phobos/std/format.d(1079):formatValue(Writer,T,Char) if (is(T : bool)) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 02, 2011 [Issue 5837] Unable to format (writeln) an enum based on bool | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5837 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #1 from kennytm@gmail.com 2011-06-02 11:51:04 PDT --- Phobos pull #72. https://github.com/D-Programming-Language/phobos/pull/72 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 06, 2011 [Issue 5837] Unable to format (writeln) an enum based on bool | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5837 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from kennytm@gmail.com 2011-06-06 12:33:15 PDT --- https://github.com/D-Programming-Language/phobos/commit/0110322cb25ba1e6b3a5f5f7d3d9b055668d5f0d -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation