From bf03d77ab96f4c718a69e0d2c4ec608ecaeba368 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 22 Jun 2020 16:28:35 -0400 Subject: [PATCH] Passing by value the string_view --- include/simdjson/implementation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/simdjson/implementation.h b/include/simdjson/implementation.h index a5eae1ca..91279b5c 100644 --- a/include/simdjson/implementation.h +++ b/include/simdjson/implementation.h @@ -26,7 +26,7 @@ WARN_UNUSED bool validate_utf8(const char * buf, size_t len) noexcept; * @param p the string_view to validate. * @return true if the string is valid UTF-8. */ -really_inline WARN_UNUSED bool validate_utf8(const std::string_view& p) noexcept { +really_inline WARN_UNUSED bool validate_utf8(const std::string_view p) noexcept { return validate_utf8(p.data(), p.size()); }