Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: referring to enum values in a template



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >referring to enum values in a template (From: Nathan Roberts <email@hidden>)
 >Re: referring to enum values in a template (From: James Widman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.