From 75f7292447dfa80a4499c779d888310b1a5570ef Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 24 Nov 2024 08:53:51 +0000 Subject: [PATCH] Made construction from std::basic_string_view explicit --- include/etl/string_view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/etl/string_view.h b/include/etl/string_view.h index 3558d2ef..48c6c75d 100644 --- a/include/etl/string_view.h +++ b/include/etl/string_view.h @@ -172,7 +172,7 @@ namespace etl /// Constructor from std::basic string_view //************************************************************************* template - ETL_CONSTEXPR basic_string_view(const std::basic_string_view& other) ETL_NOEXCEPT + explicit ETL_CONSTEXPR basic_string_view(const std::basic_string_view& other) ETL_NOEXCEPT : mbegin(other.data()) , mend(other.data() + other.size()) {