enum MyEnumType {a} auto val = cast(MyEnumType) 42;
...it seems natural that to!MyEnumType(42) should work as well. But currently it gives error: template instance std.conv.to!(MyEnumType).to!(int) error instantiating
enum MyEnumType {a} auto val = cast(MyEnumType) 42;
...it seems natural that to!MyEnumType(42) should work as well. But currently it gives error: template instance std.conv.to!(MyEnumType).to!(int) error instantiating