This option enables or disables the recognition of guiding
declarations for template functions in C++.
A guiding declaration is a function declaration
that matches an instance of a function template but has no explicit
definition because its definition derives from the function template.
If --no_guiding_decls is combined with --old_specializations,
a specialization of a nonmember template function is not recognized.
It is treated as a definition of an independent function.
Note
The option --guiding_decls is provided only
as a migration aid for legacy source code that does not conform
to the C++ standard. Its use is not recommended.
Mode
This option is effective only if the source language is C++.
Default
The default is --no_guiding_decls.
Example
template <class T> void f(T)
{
...
}
void f(int);
When regarded as a guiding declaration, f(int) is
an instance of the template. Otherwise, it is an independent function
so you must supply a definition.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.