[Issue 1610] Enum.stringof is int, not the name of the enum

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 22 10:51:58 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1610





------- Comment #2 from moritzwarning at web.de  2008-07-22 12:51 -------
I have to deal with this problem in a template function that is used with a lot
of different enum types (by some other bigger templates). But not handled enum
types hit a static assert.
I wrote different template functions before but hit some limitations that
forced me to put everything in the same function using static ifs.

Because T.stringof is almost always "int", I have a hard time to find out what
enum is not handled.

I hope this problem will be addressed soon.


-- 



More information about the Digitalmars-d-bugs mailing list