[Issue 20782] std.conv.to can't convert string to const enum

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 28 13:38:17 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20782

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at 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

--


More information about the Digitalmars-d-bugs mailing list