Skip to content

Commit

Permalink
Workaround a compilation error on gcc 9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jan 18, 2025
1 parent 898d438 commit 5f0572a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ FMT_CONSTEXPR inline void abort_fuzzing_if(bool condition) {
#if defined(FMT_USE_STRING_VIEW)
template <typename Char> using std_string_view = std::basic_string_view<Char>;
#else
template <typename T> struct std_string_view {};
template <typename Char> struct std_string_view {
operator basic_string_view<Char>() const;
};
#endif

template <typename Char, Char... C> struct string_literal {
Expand Down

0 comments on commit 5f0572a

Please sign in to comment.