Purpose
Controls whether parsing and semantic checking
are applied to template definitions.
Syntax
.-no----.
>>- -q--tmplparse--=--+-error-+--------------------------------><
'-warn--'
Parameters
- error
- Treats problems in template definitions as errors, even if the template
is not instantiated.
- no
- Do not parse template definitions. This
reduces the number of errors issued in code written for previous versions
of VisualAge® C++
and predecessor products.
- warn
- Parses template definitions and issues warning messages for semantic errors.
Usage
This option applies to template definitions,
not their instantiations. Regardless of the setting of this option, error
messages are produced for problems that appear outside definitions. For example,
messages are always produced for errors found during the parsing or semantic
checking of constructs such as the following:
- return type of a function template
- parameter list of a function template