Re: using C++ templates
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