On Monday, 14 August 2017 at 04:29:17 UTC, Johnson wrote:

```
auto valueToString(alias v)(){return v.stringof;}
enum a = valueToString!(0.75);
static assert(a == "0.75");
```
Thanks! You'd think that to would do this internally automatically ;/

It only works on literals.
valueToString!(a) will give you a;

Reply via email to