• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: referring to enum values in a template
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: referring to enum values in a template
      • From: James Widman <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>)

  • Prev by Date: Re: x86 inline assembler to stop in debugger
  • Next by Date: Making XCode realize a file/resource has been updated
  • Previous by thread: Re: referring to enum values in a template
  • Next by thread: Re: referring to enum values in a template
  • Index(es):
    • Date
    • Thread