Skip to content

Commit

Permalink
Switch format_int::str() from constexpr to inline to satisfy libstdc+…
Browse files Browse the repository at this point in the history
…+ std::string constexpr limitations.
  • Loading branch information
kamrann committed Sep 20, 2024
1 parent a67e251 commit f9e99e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit f9e99e5

Please sign in to comment.