From db5f270f429afa7ec862d0b8824bddbbca1b62da Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 8 Oct 2023 19:50:57 +0200 Subject: [PATCH] util/AllocatedString: fix string_view specialization in TotalSize() --- src/util/AllocatedString.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/AllocatedString.hxx b/src/util/AllocatedString.hxx index 3e449e15b..dd095ede6 100644 --- a/src/util/AllocatedString.hxx +++ b/src/util/AllocatedString.hxx @@ -148,7 +148,7 @@ private: static constexpr std::size_t TotalSize(std::initializer_list src) noexcept { std::size_t size = 0; - for (std::string_view i : src) + for (const string_view i : src) size += i.size(); return size; }