HP aC++/HP C A.06.20 Programmer's Guide
-Wc,-koenig_lookup,[on|off]
-Wc,-koenig_lookup,[on|off]
The -WC,-koenig_lookup option enables or disables standard argument-dependent
lookup rules (also known as Koenig lookup). It causes functions to be looked up in the
namespaces and classes associated with the types of the function-call argument. By
default, the option is enabled.
Example:
In the following example, if the option is not enabled, the call in main does not consider
declaration (1) and selects (2). With the option enabled, both declarations are seen, and
in this case overload resolution will select (1).
namespace N {
struct S {};
void f(S const&, int); // (1)
}
void f(N::S const&, long); // (2)
int main() {
N::S x;
f(x, 1);
}
Subprocesses of the Compiler
These options allow you to substitute your own processes in place of the default HP
aC++ subprocesses, or pass options to HP aC++ subprocesses.
-tx,name
-tx,name
The -tx,name option substitutes or inserts subprocess x, using name.
The parameter, x, is one or more identifiers indicating the subprocess or subprocesses.
The value of x can one or more of the following:
Table 2-7 Identifiers
Descriptionx
Assembler (standard suffix is as)a
Compiler (standard suffix is ctcom/ecom)c
Same as cC
Filter tool (standard suffix is c++filt)f
Linker (standard suffix is ld)l
Subprocesses of the Compiler 113