From 7cc7e65b61a17be4de2b3a1561164166ba4430f0 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Fri, 29 Dec 2023 16:06:11 +0100 Subject: [PATCH] fix(Archive): make MSVC even more happy --- src/archive/ArchiveAscii.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/archive/ArchiveAscii.cc b/src/archive/ArchiveAscii.cc index 9738511a..f526b1ef 100644 --- a/src/archive/ArchiveAscii.cc +++ b/src/archive/ArchiveAscii.cc @@ -266,8 +266,8 @@ namespace zenkit { template std::enable_if_t, std::string_view> intosv(std::array& buf, T v) { - auto r = std::to_chars(buf.begin(), buf.end(), v); - return std::string_view {buf.begin(), static_cast(r.ptr - buf.begin())}; + auto r = std::to_chars(buf.data(), buf.data() + buf.size(), v); + return std::string_view {buf.data(), static_cast(r.ptr - buf.begin())}; } std::uint32_t WriteArchiveAscii::write_object_begin(std::string_view object_name,