From 8eea7cef6388fa807f4a7e6912c5f05d4f5a48a7 Mon Sep 17 00:00:00 2001 From: hsutter Date: Thu, 20 Jun 2019 11:54:25 -0700 Subject: [PATCH] Closes #1445 --- CppCoreGuidelines.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 1dbd7c6..005cb51 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -3308,6 +3308,8 @@ Passing a `span` object as an argument is exactly as efficient as passing a pair C-style strings are ubiquitous. They are defined by convention: zero-terminated arrays of characters. We must distinguish C-style strings from a pointer to a single character or an old-fashioned pointer to an array of characters. +If you don't need null termination, use `string_view`. + ##### Example Consider: