From 4c5c3267e90cd2073c9c2547f2a2c75a3e86005f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rimas=20Misevi=C4=8Dius?= Date: Sun, 5 Nov 2023 11:53:13 +0200 Subject: [PATCH] Add noexcept to str_view(const CharT*, size_type) ctor --- include/upa/str_view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/upa/str_view.h b/include/upa/str_view.h index 0281df5..dc77666 100644 --- a/include/upa/str_view.h +++ b/include/upa/str_view.h @@ -37,7 +37,7 @@ class str_view { // constructors constexpr str_view() noexcept = default; constexpr str_view(const str_view&) noexcept = default; - constexpr str_view(const CharT* ptr, size_type len) : ptr_(ptr), len_(len) {} + constexpr str_view(const CharT* ptr, size_type len) noexcept : ptr_(ptr), len_(len) {} str_view(const CharT* ptr) : ptr_(ptr), len_(Traits::length(ptr)) {} // assignment