Demote enforcement to note, closes #2246
Some checks failed
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
build / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled

This commit is contained in:
Herb Sutter
2025-01-16 17:10:12 -05:00
parent f7d1181212
commit 0459ef444d

View File

@@ -2679,9 +2679,9 @@ Member functions defined in-class are `inline` by default.
Function templates (including member functions of class templates `A<T>::function()` and member function templates `A::function<T>()`) 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).
### <a name="Rf-noexcept"></a>F.6: If your function must not throw, declare it `noexcept`