April 28, 2020 [Issue 20782] std.conv.to can't convert string to const enum | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20782 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> --- @atilaneves created dlang/phobos pull request #7464 "Fix issue 20782 - allow std.conv.to to convert string to const enum" fixing this issue: - Fix issue 20782 - allow std.conv.to to convert string to const enum The commit allows the following code to compile: ------------------------ enum Enum { oops } "foo".to!(const Enum); ------------------------ https://github.com/dlang/phobos/pull/7464 -- | ||||
April 28, 2020 [Issue 20782] std.conv.to can't convert string to const enum | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20782 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/phobos pull request #7464 "Fix issue 20782 - allow std.conv.to to convert string to const enum" was merged into master: - 46933cf73ed7a127c4657f418280938e3d1bbd80 by Atila Neves: Fix issue 20782 - allow std.conv.to to convert string to const enum The commit allows the following code to compile: ------------------------ enum Enum { oops } "foo".to!(const Enum); ------------------------ https://github.com/dlang/phobos/pull/7464 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply