From 470a603239ced944f52af75a239255aeb720f647 Mon Sep 17 00:00:00 2001 From: grzebiel Date: Sat, 25 Jun 2016 23:51:52 +0200 Subject: [PATCH] use proper argument for creation of span from array --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 26c3de9..d9a222c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -15422,7 +15422,7 @@ Pointers should not be used as arrays. `span` is a bounds-checked, safe alternat span av = a; g(av.data(), av.length()); // OK, if you have no choice - g1(av); // OK -- no decay here, instead use implicit span ctor + g1(a); // OK -- no decay here, instead use implicit span ctor } ##### Enforcement