Skip to content

Commit

Permalink
Demote enforcement to note, closes #2246
Browse files Browse the repository at this point in the history
  • Loading branch information
hsutter committed Jan 16, 2025
1 parent f7d1181 commit 0459ef4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit 0459ef4

Please sign in to comment.