Enum member whose string name we want.
The string name of the passed enum member.
enum T { UNSET, QUERY, PRIVMSG, RPL_ENDOFMOTD } with (T) { static assert(enumToString(QUERY) == "QUERY"); static assert(enumToString(PRIVMSG) == "PRIVMSG"); static assert(enumToString(RPL_ENDOFMOTD) == "RPL_ENDOFMOTD"); }
Convenience wrapper around Enum that infers the type of the passed enum member.