mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Clarify meaning of "inline" in F.5, closes #1731
This commit is contained in:
parent
fa56634596
commit
c57e95d1c8
|
@ -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.
|
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.
|
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.
|
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
|
##### Example
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user