<br><br><div class="gmail_quote">On Tue, Jan 8, 2013 at 9:14 PM, Era Scarecrow <span dir="ltr"><<a href="mailto:rtcvb32@yahoo.com" target="_blank">rtcvb32@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tuesday, 8 January 2013 at 20:07:29 UTC, monarch_dodra wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You appear to want "choice" to represent a value, rather than a type.<br>
<br>
Declare it as "int choice" or "alias choice"<br>
<br>
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.<br>
</blockquote>
<br></div>
 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.<br>
</blockquote></div><br><div>alias for templates gives you a 'symbol' parameter: you can pass any identifier to it: variable, user-defined types, module names...</div><div>Not built-in types (int,...) which are keywords and *not* valid identifiers.</div>
<div><br></div><div>A single identifier in a template parameter list (usually marked with UpperCase) denotes a type.</div><div><br></div><div><br></div>