Clarify meaning of "inline" in F.5, closes #1731

This commit is contained in:
Herb Sutter 2021-02-18 11:33:58 -08:00
parent fa56634596
commit c57e95d1c8

View File

@ -2656,7 +2656,7 @@ The compiler gives an error if a non-`constexpr` function is called where a cons
Some optimizers are good at inlining without hints from the programmer, but don't rely on it.
Measure! Over the last 40 years or so, we have been promised compilers that can inline better than humans without hints from humans.
We are still waiting.
Specifying `inline` encourages the compiler to do a better job.
Specifying inline (explicitly, or implicitly when writing member functions inside a class definition) encourages the compiler to do a better job.
##### Example