TMPLPARSE (C++ only)
Category
C++ template
Pragma equivalent
None.
Purpose
Controls whether parsing and semantic checking are applied to template definitions.
Defaults
TMPLPARSE(NO)
Parameters
- ERROR
- Treats problems in template definitions as errors, even if the template is not instantiated.
- NO
- Do not parse template definitions.
- WARNING
- 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
IPA effects
The IPA link step issues a diagnostic message if you specify the TMPLPARSE option for that step.
Predefined macros
None.