Can I count the of enum's fields at compile time?
Marc
jckj33 at gmail.com
Thu Nov 23 00:58:21 UTC 2017
for example:
enum A { a = -10, b = -11, c = -12, d = -13, e = -34}
enum int countOfA = coutOfFields(A); // 5 fields
More information about the Digitalmars-d-learn
mailing list