template instantiations on SUN

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sunil

    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=stati c,global,explic it atleast
    last three mention they work only with definition included, -
    instances=exter n doesnt mention anything (does this work with
    definition included/separate ) both of them? (http://docs.sun.com/app/
    docs/doc/805-4954/6j4mf9fl2?a=vie w)
    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
  • mlimber

    #2
    Re: template instantiations on SUN

    On Aug 13, 12:14 pm, sunil <sunilsreenivas 2...@yahoo.comw rote:
    readinghttp://docs.sun.com/source/819-3690/Program_Org.htm l#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=stati c,global,explic it atleast
    last three mention they work only with definition included, -
    instances=exter n doesnt mention anything (does this work with
    definition included/separate ) both of them? (http://docs.sun.com/app/
    docs/doc/805-4954/6j4mf9fl2?a=vie w)
    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:



    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:



    Cheers! --M

    Comment

    • Ian Collins

      #3
      Re: template instantiations on SUN

      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=stati c,global,explic it atleast
      last three mention they work only with definition included, -
      instances=exter n doesnt mention anything (does this work with
      definition included/separate ) both of them? (http://docs.sun.com/app/
      docs/doc/805-4954/6j4mf9fl2?a=vie w)
      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.

      Comment

      Working...