On Thursday, 7 May 2015 at 20:55:42 UTC, Nick Sabalausky wrote:
    // There's gotta be a better way to convert EnumMembers!T
    // to a range, right? But std.range.only() didn't work,
    // due to a template instantiation error.
    T[] members;
    foreach(m; EnumMembers!(T))
        members ~= m;

only(EnumMembers!T) should work and did work before 2.067. I filed a regression:
https://issues.dlang.org/show_bug.cgi?id=14556

Reply via email to