template instantiations on SUN

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

    template instantiations on SUN

    Hello All,
    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 its
    mentioned 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)
    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
Working...