From 0459ef444d82138c94aad84a3b4401bc01fd00c9 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 16 Jan 2025 17:10:12 -0500 Subject: [PATCH] Demote enforcement to note, closes #2246 --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2649ce033..2819f9e43 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2679,9 +2679,9 @@ Member functions defined in-class are `inline` by default. Function templates (including member functions of class templates `A::function()` and member function templates `A::function()`) are normally defined in headers and therefore inline. -##### Enforcement +##### Note -Flag `inline` functions that are more than three statements and could have been declared out of line (such as class member functions). +Consider making functions out of line if they are more than three statements and can be declared out of line (such as class member functions). ### F.6: If your function must not throw, declare it `noexcept`