# ftemplate-depth, Qtemplate-depth

Control the depth in which recursive templates are expanded.

## Syntax

Linux: | -ftemplate-depth=n

macOS: | -ftemplate-depth=n

Windows: | /Qtemplate-depth:n

## Arguments

n | The number of recursive templates that are expanded.

## Default

OFF | The compiler uses default heuristics for the depth of expansion.

## Description

Control the depth in which recursive templates are expanded. On Linux*, this option is supported only by invoking the compiler with icpc.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Language Options