std.conv: conversion from ulong to enum
Andrej Mitrovic
andrej.mitrovich at gmail.com
Thu Aug 22 16:28:09 PDT 2013
On 8/23/13, Matej Nanut <matejnanut at gmail.com> wrote:
> It doesn't compile due to the template not instantiating.
It's likely a bug just like in Issue 6893[1], where this won't compile:
-----
import std.stdio;
enum E3 : ulong { A, B, C };
void main() {
writeln(E3.C);
}
-----
[1] : http://d.puremagic.com/issues/show_bug.cgi?id=6893
More information about the Digitalmars-d
mailing list