mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fixing ES.87
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# <a name="main"></a>C++ Core Guidelines
|
# <a name="main"></a>C++ Core Guidelines
|
||||||
|
|
||||||
September 17, 2017
|
September 18, 2017
|
||||||
|
|
||||||
|
|
||||||
Editors:
|
Editors:
|
||||||
@@ -11213,11 +11213,11 @@ The loop control up front should enable correct reasoning about what is happenin
|
|||||||
Flag variables that are potentially updated (have a non-`const` use) in both the loop control iteration-expression and the loop body.
|
Flag variables that are potentially updated (have a non-`const` use) in both the loop control iteration-expression and the loop body.
|
||||||
|
|
||||||
|
|
||||||
### <a name="es-if"></a>ES.87: Don't add redundant `==` or `!=` to conditions
|
### <a name="Res-if"></a>ES.87: Don't add redundant `==` or `!=` to conditions
|
||||||
|
|
||||||
##### Reason
|
##### Reason
|
||||||
|
|
||||||
Doing so avoids verbosity and eliminats some opportunities for mistakes.
|
Doing so avoids verbosity and eliminates some opportunities for mistakes.
|
||||||
Helps make style consistent and conventional.
|
Helps make style consistent and conventional.
|
||||||
|
|
||||||
##### Example
|
##### Example
|
||||||
|
|||||||
Reference in New Issue
Block a user