Re: Traits in a template enum

2021-10-10 Thread Mike Parker via Digitalmars-d-learn
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.

Re: Traits in a template enum

2021-10-10 Thread Some Guy via Digitalmars-d-learn
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)

Re: Traits in a template enum

2021-10-10 Thread Adam D Ruppe via Digitalmars-d-learn
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

Re: Traits in a template enum

2021-10-10 Thread Some Guy via Digitalmars-d-learn
It actually looks like I'm having problems wherever I try to pass that enum as a template parameter.