• 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: using C++ templates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using C++ templates


  • Subject: Re: using C++ templates
  • From: Todd Heberlein <email@hidden>
  • Date: Wed, 17 Feb 2010 16:16:12 -0800

> When you're working with templates, all of the implementation must be available to that compilation unit -- which is just a fancy way of saying that you can't have your template declaration and template method definitions in separate files.

I always put templates in files I designate has .hpp. I do this so visually I can spot them as "header files with C++ code in them."

As a purist, this always gives me the shivers: declarations and definitions should be separate. But that doesn't always work with some compilers.

Todd

 _______________________________________________
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

References: 
 >using C++ templates (From: Piotr Rychlik <email@hidden>)
 >Re: using C++ templates (From: "Glenn L. Austin" <email@hidden>)

  • Prev by Date: Re: using C++ templates
  • Next by Date: Re: UITableViewDelegate and selection under editing
  • Previous by thread: Re: using C++ templates
  • Next by thread: Problem building project
  • Index(es):
    • Date
    • Thread