| |||
| Home > Compiler Command-line Options > Command-line options > --dep_name, --no_dep_name | |||
This option enables or disables dependent name processing in C++.
The C++ standard states that lookup of names in templates occurs:
at the time the template is parsed, if the name is nondependent
at the time the template is parsed, or at the time the template is instantiated, if the name is dependent.
When
the option --no_dep_name is selected, the lookup
of dependent names in templates can occur only at the time the template
is instantiated. That is, the lookup of dependent names at the time
the template is parsed is disabled.
The option --no_dep_name is provided only
as a migration aid for legacy source code that does not conform
to the C++ standard. Its use is not recommended.
The option --dep_name cannot be combined
with the option --no_parse_templates, because parsing
is done by default when dependent name processing is enabled.
When the options --dep_name and --no_parse_templates are
combined, the compiler generates an error.