From c57e95d1c8458e2a0ffde11f49b8420e08882d9a Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 18 Feb 2021 11:33:58 -0800 Subject: [PATCH] Clarify meaning of "inline" in F.5, closes #1731 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index c79a588..c31d860 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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