Re: referring to enum values in a template
Re: referring to enum values in a template
- Subject: Re: referring to enum values in a template
- From: Nathan Roberts <email@hidden>
- Date: Mon, 30 Jan 2006 11:29:04 -0600
James,
Minor nit: we say "class template" when referring to the template
(as opposed to instantiations of it). "Template class" is known
these days as a somewhat deprecated shorthand for "template
specialization". It sure does roll off the tongue more easily
though. (:
Okay, sure. So the verb form would be specialized? ("class template
errors happen during specialization")
Issue 1: Base classes of dependent type (or, during instantiation,
of formerly-dependent type) are not searched during unqualified
name lookup. (14.6.2p3)
Understood. Do those rule numbers (14.6.2p3, e.g.) refer to a
document that describes gcc's parsing mechanism? Where might I find
that?
Issue 2: Enums do not introduce a new scope; instead, enumeration
constants ([e0-e3] above) are injected into the scope where the
enumeration type name resides. So instead, you should use:
Got it. Thanks for a wonderfully detailed, clear explanation. Not
only do I understand, those errant lines now compile!
Thanks!
Nate
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden