HP aC++/HP C A.06.25 Programmer's Guide

NOTE: This option is deprecated as of version A.06.05 and if used, it issues a warning
that -Bprotected_defis almost always what should be used in its place.
Template Options
By using a template option on the aCC command line, you can:
Close a library or set of link units, to satisfy all unsatisfied instantiations without
creating duplicate instantiations.
Specify what templates to instantiate for a given translation unit.
Name and use template files in the same way as for the cfront based HP C++
compiler.
Request verbose information about template processing.
NOTE: All template options on an aCC command line apply to every file on the
command line. If you specify more than one incompatible option on a command line,
only the last option takes effect.
+[no]dep_name
The +[no]dep_name option enforces strict dependent-name lookup rules in templates.
The default is +dep_name.
+inst_compiletime
+inst_compiletime
The +inst_compiletime option causes the compiler to use the compile time (CTTI)
instantiation mechanism to instantiate templates. This occurs for every template used
or explicitly instantiated in this translation unit and for which a definition exists in the
translation unit. This is the default.
NOTE: This option is supported in C++ only and ignored in C-mode.
+inst_directed
+inst_directed
The +inst_directed option indicates to the compiler that no templates are to be
instantiated (except explicit instantiations). If you are using only explicit instantiation,
specify +inst_directed. The following example compiles file.C with the resulting
object file containing no template instantiations, except for any explicit instantiations
coded in your source file.
aCC +inst_directed prog.C
See Chapter 5: “Using HP aC++ Templates” (page 173) for more information.
120 Command-Line Options