Skip to content

Commit fbe6aac

Browse files
authored
Merge pull request #618 from tlanc007/CP.2_617
CP.2_617: Changed variable s to a tigher form of span.
2 parents 6760960 + 5d19b4b commit fbe6aac

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
@@ -10893,7 +10893,7 @@ Local static variables are a common source of data races.
1089310893
{
1089410894
array<double, max> buf;
1089510895
int sz = read_vec(fs, buf, max); // read from fs into buf
10896-
gsl::span<double> s {buf, max};
10896+
gsl::span<double> s {buf};
1089710897
// ...
1089810898
auto h1 = async([&]{ sort(par, s); }); // spawn a task to sort
1089910899
// ...

0 commit comments

Comments
 (0)