Skip to content

Commit 5d19b4b

Browse files
committed
CP.2_617: Switched to an alternate form of span<>.
1 parent 5eb0b58 commit 5d19b4b

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
@@ -10378,7 +10378,7 @@ Local static variables are a common source of data races.
1037810378
{
1037910379
array<double, max> buf;
1038010380
int sz = read_vec(fs, buf, max); // read from fs into buf
10381-
gsl::span<double> s {buf, max};
10381+
gsl::span<double> s {buf};
1038210382
// ...
1038310383
auto h1 = async([&]{ sort(par, s); }); // spawn a task to sort
1038410384
// ...

0 commit comments

Comments
 (0)