November 26 [Issue 24880] to!string with inout enum argument fails to compile | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24880 --- Comment #1 from anonymous4 <dfj1esp02@sneakemail.com> --- private template enumRep(T, S, S value) if (is (T == immutable) && isExactSomeString!T && is(S == enum)) { static T enumRep = toStr!T(value); } If I mark the argument as immutable, then it compiles: private template enumRep(T, S, immutable S value) Presumably for enums it should be fine. Invoking with enumRep!(immutable(T), immutable(S), member) works too. -- |
December 01 [Issue 24880] to!string with inout enum argument fails to compile | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24880 --- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10568 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation