From 27bf8b47fe99743c1ba9a33eacbdda99080b2490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9=C3=A9n?= <43650869+17steen@users.noreply.github.com> Date: Thu, 30 Oct 2025 02:34:42 +0100 Subject: [PATCH] Add FMT_CONSTEXPR to static_format_result members (#4591) Co-authored-by: Robin Oger --- include/fmt/compile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 64eb7a20..eeba72db 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -559,8 +559,8 @@ template class static_format_result { *fmt::format_to(data, fmt, std::forward(args)...) = '\0'; } - auto str() const -> fmt::string_view { return {data, N - 1}; } - auto c_str() const -> const char* { return data; } + FMT_CONSTEXPR auto str() const -> fmt::string_view { return {data, N - 1}; } + FMT_CONSTEXPR auto c_str() const -> const char* { return data; } }; /**