Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
February 17, 2013 [Issue 9523] New: std.conv.to will no longer convert enums to themselves | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9523 Summary: std.conv.to will no longer convert enums to themselves Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: jmdavisProg@gmx.com --- Comment #0 from Jonathan M Davis <jmdavisProg@gmx.com> 2013-02-16 20:51:30 PST --- This compiled with 2.061 import std.conv; enum E { a } void main() { auto month2 = to!E(E.a); } but does not compile with the current beta for 2.062. Rather, it gives the error: /home/jmdavis/dmd2/linux/bin/../../src/phobos/std/conv.d(274): Error: template std.conv.toImpl matches more than one template declaration, /home/jmdavis/dmd2/linux/bin/../../src/phobos/std/conv.d(330):toImpl(T, S)(S value) if (isImplicitlyConvertible!(S, T) && !isEnumStrToStr!(S, T) && !isNullToStr!(S, T)) and /home/jmdavis/dmd2/linux/bin/../../src/phobos/std/conv.d(1654):toImpl(T, S)(S value) if (is(T == enum) && is(S : OriginalType!(T)) && !isFloatingPoint!(OriginalType!(T)) && !isSomeString!(OriginalType!(T))) q.d(7): Error: template instance std.conv.to!(E).to!(E) error instantiating -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 17, 2013 [Issue 9523] std.conv.to will no longer convert enums to themselves | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=9523 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull CC| |andrej.mitrovich@gmail.com AssignedTo|nobody@puremagic.com |andrej.mitrovich@gmail.com --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-16 20:56:51 PST --- https://github.com/D-Programming-Language/phobos/pull/1143 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 17, 2013 [Issue 9523] std.conv.to will no longer convert enums to themselves | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=9523 --- Comment #2 from github-bugzilla@puremagic.com 2013-02-16 22:25:33 PST --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/1d24c8edf5e2ca2e9bd379a13ca75e19a2c09535 Fixes Issue 9523 - Regression: Enum to Enum conversion should work in std.conv. https://github.com/D-Programming-Language/phobos/commit/2e587acf0d6b7f0fe4b810d535db319ad9c6bed8 Merge pull request #1143 from AndrejMitrovic/Fix9523 Regression: Issue 9523 - Enum to Enum conversion should work in std.conv.to -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 17, 2013 [Issue 9523] std.conv.to will no longer convert enums to themselves | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=9523 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 17, 2013 [Issue 9523] std.conv.to will no longer convert enums to themselves | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=9523 --- Comment #3 from github-bugzilla@puremagic.com 2013-02-16 22:45:16 PST --- Commit pushed to staging at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c45bdf993856981f3273dc00df0daaa9f4e67771 Merge pull request #1143 from AndrejMitrovic/Fix9523 Regression: Issue 9523 - Enum to Enum conversion should work in std.conv.to -- 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