From f9e99e5e9eb559f894feb3c55b60fbfa72fed182 Mon Sep 17 00:00:00 2001 From: Cameron Angus Date: Fri, 20 Sep 2024 13:15:50 +0900 Subject: [PATCH] Switch format_int::str() from constexpr to inline to satisfy libstdc++ std::string constexpr limitations. --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 721d2294c85b..04571086ec54 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -4134,7 +4134,7 @@ class format_int { } /// Returns the content of the output buffer as an `std::string`. - FMT_CONSTEXPR20 auto str() const -> std::string { return {str_, size()}; } + FMT_INLINE auto str() const -> std::string { return {str_, size()}; } }; #define FMT_STRING_IMPL(s, base) \