From fd9c72554953c1197f4d4349e6f4ae0be90de03e Mon Sep 17 00:00:00 2001 From: hsutter Date: Thu, 10 Jan 2019 11:34:56 -0800 Subject: [PATCH] Update for #1306 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 8c6f044..40dcc3b 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -11308,7 +11308,7 @@ Use a `span`: void f2(array arr, int pos) // A2: Add local span and use that { - span a = {arr, pos}; + span a = {arr.data(), pos}; a[pos / 2] = 1; // OK a[pos - 1] = 2; // OK }