473,320 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

template instantiations on SUN

reading http://docs.sun.com/source/819-3690/...Org.html#37468, I
see there are two ways to instantiate templates: template definitions
included, template definitions separate, does template definitions
separate mean there will be only one copy of instantiated template
code per type ?
Also the compiler options: -instances=static,global,explicit atleast
last three mention they work only with definition included, -
instances=extern doesnt mention anything (does this work with
definition included/separate ) both of them? (http://docs.sun.com/app/
docs/doc/805-4954/6j4mf9fl2?a=view)
What is the default value for this optoin for this sun compiler
version:
CC -V
CC: Sun C++ 5.5 Patch 113817-15 2005/10/25
Thanks
Aug 13 '08 #1
2 1497
On Aug 13, 12:14*pm, sunil <sunilsreenivas2...@yahoo.comwrote:
readinghttp://docs.sun.com/source/819-3690/Program_Org.html#37468, I
see there are two ways to instantiate templates: template definitions
included, template definitions separate, does template definitions
separate mean there will be only one copy of instantiated template
code per type ?
Also the compiler options: -instances=static,global,explicit atleast
last three mention they work only with definition included, -
instances=extern doesnt mention anything (does this work with
definition included/separate ) both of them? (http://docs.sun.com/app/
docs/doc/805-4954/6j4mf9fl2?a=view)
What is the default value for this optoin for this sun compiler
version:
CC -V
CC: Sun C++ 5.5 Patch 113817-15 2005/10/25
For your first paragraph, see this FAQ:

http://www.parashift.com/c++-faq-lit...html#faq-35.14

For your second, post in a newsgroup that deals with Sun's tool chain.
This group deals with the standard C++ language proper, not particular
compilers thereof. See this FAQ for what is on-topic here and for some
ideas of where else you might ask:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M
Aug 13 '08 #2
sunil wrote:
reading http://docs.sun.com/source/819-3690/...Org.html#37468, I
see there are two ways to instantiate templates: template definitions
included, template definitions separate, does template definitions
separate mean there will be only one copy of instantiated template
code per type ?
Also the compiler options: -instances=static,global,explicit atleast
last three mention they work only with definition included, -
instances=extern doesnt mention anything (does this work with
definition included/separate ) both of them? (http://docs.sun.com/app/
docs/doc/805-4954/6j4mf9fl2?a=view)
What is the default value for this optoin for this sun compiler
version:
CC -V
CC: Sun C++ 5.5 Patch 113817-15 2005/10/25
See the documentation for the current compiler (yours is very old) and
direct any questions to the Sun Studio forum on forums.sun.com.

--
Ian Collins.
Aug 13 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Agent Mulder | last post by:
Hi group, I try to get a reference to a template. In the template, a virtual function is declared. Later in the program, I inherit from classes created by the template. So the template is the...
17
by: Jacek Dziedzic | last post by:
Hello! I have a templated class that serves as a simple vector of elements. template <typename T> class simple_vector : public math_object { // ... lots of simple_vector operations // the...
5
by: nifsmith | last post by:
Hi I am trying to learn about Queues and use templates at the same time. I have written the following code and I am getting a link error, stating "unresolved external symbol, "int__cdecl...
8
by: | last post by:
This code get's a link error (I'm guessing because the template isn't being instantiated)... // For using templates to simplify deleting items template <class T> // Returns the next ADHL in the...
1
by: Tony Johansson | last post by:
Hello Experts! I reading a book called programming with design pattern revealed by Tomasz Muldner and here I read something that I don't understand completely. Im I right if I say the...
8
by: Tony Johansson | last post by:
Hello Experts! What does this mean actually. If you have a template with a type and non-type template argument, say, like this template<typename T, int a> class Array {. . .}; then A<int,...
3
by: sks | last post by:
Hello all Is the usage of extern keyword valid for telling the compiler to NOT instantiate a template and to link it from an another binary? For example: Suppose module A's binary contains a...
2
by: Boni | last post by:
Dear all, ist it possible to have a template class or func as friend of other class: Folowing returns syntax errors template< typename T> class test{}; template< typename T> int func (Ta); ...
2
by: Joseph Turian | last post by:
I'm posting this question for a friend who lacks USENET access. He and I were discussing this question and could not figure out the solution. Thank you for your help Joseph ===
5
by: aryan | last post by:
Is it not allowed to have template function definition in a .cc file? Here is the scenario. The tempage function declaration is in a header file and the definition in a .cc file. The function is...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.