mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Remove superfluous word in ES.42 enforcement (#1347)
This commit is contained in:
committed by
Sergey Zubkov
parent
882e9539fa
commit
d6a6e7092a
@@ -11418,7 +11418,7 @@ If you want to pass an array, say so:
|
|||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
* Flag any arithmetic operation on an expression of pointer type that results in a value of pointer type.
|
* Flag any arithmetic operation on an expression of pointer type that results in a value of pointer type.
|
||||||
* Flag any indexing expression on an expression or variable of array type (either static array or `std::array`) where the indexer is not a compile-time constant expression with a value between `0` or and the upper bound of the array.
|
* Flag any indexing expression on an expression or variable of array type (either static array or `std::array`) where the indexer is not a compile-time constant expression with a value between `0` and the upper bound of the array.
|
||||||
* Flag any expression that would rely on implicit conversion of an array type to a pointer type.
|
* Flag any expression that would rely on implicit conversion of an array type to a pointer type.
|
||||||
|
|
||||||
This rule is part of the [bounds-safety profile](#SS-bounds).
|
This rule is part of the [bounds-safety profile](#SS-bounds).
|
||||||
|
|||||||
Reference in New Issue
Block a user