fno-implicit-templates

Tells the compiler to not emit code for non-inline templates that are instantiated implicitly.

Syntax

Linux OS and OS X:

-fno-implicit-templates

Windows OS:

None

Arguments

None

Default

OFF

The compiler handles inlines so that compilations, with and without optimization, will need the same set of explicit instantiations.

Description

This option tells the compiler to not emit code for non-inline templates that are instantiated implicitly, but to only emit code for explicit instantiations.

IDE Equivalent

None

Alternate Options

None

For more complete information about compiler optimizations, see our Optimization Notice.