On Monday, 14 August 2017 at 04:29:17 UTC, Johnson wrote:
Thanks! You'd think that to would do this internally automatically ;/``` auto valueToString(alias v)(){return v.stringof;} enum a = valueToString!(0.75); static assert(a == "0.75"); ```
It only works on literals. valueToString!(a) will give you a;