From efda153bb06aaf6dbdd80fdbce080d2d2cf315cc Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 4 Oct 2024 02:20:33 +0100 Subject: [PATCH] fmt: Don't use iterators for string_view format_target::append --- src/core/format.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/format.hpp b/src/core/format.hpp index fc91aeaedcf..66c9b0a1905 100644 --- a/src/core/format.hpp +++ b/src/core/format.hpp @@ -114,7 +114,7 @@ struct format_target { this->target.append(begin, end); } - void append(std::string_view str) { this->append(str.begin(), str.end()); } + void append(std::string_view str) { this->append(str.data(), str.data() + str.size()); } template void append_ptr_last_func(size_t to_reserve, F func)