enum a = 1; enum b = "b"; // function should be global // enum strof(alias x) = typeof(x).stringof; static assert(ctMap!strof(a, b) == tuple("int", "string"));
See Implementation