Skip to content

Commit c9bd992

Browse files
authored
Merge pull request #635 from grzebiel/master
use proper argument for creation of span from array
2 parents efd62a9 + f4ad185 commit c9bd992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15422,7 +15422,7 @@ Pointers should not be used as arrays. `span` is a bounds-checked, safe alternat
1542215422
span<int> av = a;
1542315423

1542415424
g(av.data(), av.length()); // OK, if you have no choice
15425-
g1(av); // OK -- no decay here, instead use implicit span ctor
15425+
g1(a); // OK -- no decay here, instead use implicit span ctor
1542615426
}
1542715427

1542815428
##### Enforcement

0 commit comments

Comments
 (0)