mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
[Typo] Fix typo in function definition rule 5
This commit is contained in:
parent
058e1bfb41
commit
fd3d7083b0
|
@ -1816,7 +1816,7 @@ The compiler gives an error if a non-`constexpr` function is called where a cons
|
|||
<a name="Rf-inline"></a>
|
||||
### F.5: If a function is very small and time critical, declare it `inline`
|
||||
|
||||
**Reason**: Some optimizers are good an inlining without hints from the programmer, but don't rely on it.
|
||||
**Reason**: 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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user