[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 10:21:32 UTC 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

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

--


More information about the Digitalmars-d-bugs mailing list