On Sunday, 10 October 2021 at 12:56:30 UTC, Some Guy wrote:
But I did not understand what you meant by "enums hold values,
not types". Aren't types values at compile time?
Types can be template arguments, if that's what you mean, but
they aren't values.
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 type
enums hold values, not types.
try alias instead
Thanks! `alias typeOfMember(T, string member) =
typeof(__traits(getMember, T, member)
On Sunday, 10 October 2021 at 12:39:17 UTC, Some Guy wrote:
I have this enum to get the type
enums hold values, not types.
try alias instead
It actually looks like I'm having problems wherever I try to pass
that enum as a template parameter.