diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 7951425..84cbbe7 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1069,6 +1069,9 @@ After that, we can look at waste related to algorithms and requirements, but tha Many more specific rules aim at the overall goals of simplicity and elimination of gratuitous waste. +* Flag an unused return value from a user-defined non-defaulted postfix `operator++` or `operator--` function. Prefer using the prefix form instead. (Note: "User-defined non-defaulted" is intended to reduce noise. Review this enforcement if it's still too noisy in practice.) + + ### P.10: Prefer immutable data to mutable data ##### Reason