enums and std.traits

Adam D. Ruppe destructionator at gmail.com
Sat Aug 4 20:40:40 PDT 2012


On Saturday, 4 August 2012 at 21:09:40 UTC, Jonathan M Davis 
wrote:
> I think that the change to std.traits was a big mistake and 
> will probably file it as a regression

I don't know what the right answer here is, but if you do end up 
reverting those changes, be sure to change std.conv.to too so 
that bug which led to this change doesn't come back.

Probably adding is(T == enum) and !is(T==enum) to the appropriate 
places will do the trick.



More information about the Digitalmars-d mailing list