template instantiations on SUN

Discussion in 'C++' started by sunil, Aug 13, 2008.

  1. sunil

    sunil Guest

    Hello All,
    reading http://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 its
    mentioned 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)
    how to find out default value for "-instances" option for my version
    of sun compiler version:
    CC -V
    CC: Sun C++ 5.5 Patch 113817-15 2005/10/25
    Thanks
     
    sunil, Aug 13, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    2,928
  2. mpichini
    Replies:
    0
    Views:
    411
    mpichini
    Jul 1, 2003
  3. Replies:
    1
    Views:
    287
    Victor Bazarov
    Oct 19, 2005
  4. sks
    Replies:
    3
    Views:
    427
  5. sunil
    Replies:
    2
    Views:
    417
    Ian Collins
    Aug 13, 2008
Loading...

Share This Page