Template help - MultiAccess
Era Scarecrow
rtcvb32 at yahoo.com
Tue Jan 8 12:14:31 PST 2013
On Tuesday, 8 January 2013 at 20:07:29 UTC, monarch_dodra wrote:
> You appear to want "choice" to represent a value, rather than a
> type.
>
> Declare it as "int choice" or "alias choice"
>
> Not that with "int choice", you'll get a compiler error because
> it isn't a compile constant. I'm not really sure about how
> "alias" works, but that's the source of your problem.
Ahh. I changed it and instantly it compiles. I never quite did
understand alias for templates, but now I think I have a better
grasp.
More information about the Digitalmars-d-learn
mailing list