Purpose
Specifies the maximum number of
recursively instantiated template specializations that are processed
by the compiler.
Syntax
>>-TEMPLATEDEPTH--(--number--)---------------------------------><
Defaults
TEMPLATEDEPTH(300)
Parameters
- number
- The maximum number of recursive template instantiations. The number
can be a value in the range of 1 and INT_MAX. If your program attempts
to recursively instantiate more templates than the number specified,
compilation halts and an error message is issued. If you specify an
invalid value, the default value of 300 is used.
Usage
Setting this option to a high value
can potentially cause an out-of-memory error because of the complexity
and amount of code generated.