Specifies that an inline routine should be inlined whenever the compiler can do so.
IA-32, Intel® 64, IA-64 architectures
Linux and Mac OS X: | -inline-forceinline |
Windows: | /Qinline-forceinline |
OFF |
The compiler uses default heuristics for inline routine expansion. |
This option specifies that a inline routine should be inlined whenever the compiler can do so. This causes the routines marked with an inline keyword or attribute to be treated as if they were "forceinline".
Because C++ member functions whose definitions are included in the class declaration are considered inline functions by default, using this option will also make these member functions "forceinline" functions.
The "forceinline" condition can also be specified by using the keyword __forceinline.
To see compiler values for important inlining limits, specify compiler option -opt-report (Linux and Mac OS) or /Qopt-report (Windows).
When you use this option to change the meaning of inline to "forceinline", the compiler may do so much additional inlining that it runs out of memory and terminates with an "out of memory" message.
None