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

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 169) for more information.
NOTE: This option is supported in C++ only and ignored in C-mode.
+inst_implicit_include
+inst_implicit_include
The +inst_implicit_include option specifies that the compiler use a process
similar to that of the cfront source rule for locating template definition files. For the
cfront based HP C++ compiler, if you are using default instantiation (that is, if you
are not using a map file), you must have a template definition file for each template
declaration file, and these must have the same file name prefix.
This restriction does not apply in HP aC++. Therefore, if your code was written for HP
C++ and you wish to follow this rule when compiling with HP aC++, you need to specify
the +inst_implicit_include option.
Template Options 119