On Sunday, 10 October 2021 at 12:48:49 UTC, Adam D Ruppe wrote:
On Sunday, 10 October 2021 at 12:39:17 UTC, Some Guy wrote:I have this enum to get the typeenums hold values, not types. try alias instead
Thanks! `alias typeOfMember(T, string member) = typeof(__traits(getMember, T, member));` works.
But I did not understand what you meant by "enums hold values, not types". Aren't types values at compile time?