From 5d19b4b875b768214392c285c2ee6aa7a786eba5 Mon Sep 17 00:00:00 2001 From: tal Date: Mon, 23 May 2016 14:25:57 -0700 Subject: [PATCH] CP.2_617: Switched to an alternate form of span<>. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 26c3de9..2dcd865 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10378,7 +10378,7 @@ Local static variables are a common source of data races. { array buf; int sz = read_vec(fs, buf, max); // read from fs into buf - gsl::span s {buf, max}; + gsl::span s {buf}; // ... auto h1 = async([&]{ sort(par, s); }); // spawn a task to sort // ...