-qtmplparse (C++ only)

Category

Template control

Pragma equivalent

None.

Purpose

Controls whether parsing and semantic checking are applied to template definitions.

Syntax

Read syntax diagramSkip visual syntax diagram
                      .-no----.   
>>- -q--tmplparse--=--+-error-+--------------------------------><
                      '-warn--'   

Defaults

-qtmplparse=no

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:

Predefined macros

None.

Related information