diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 646d63f926b3..06fcaad53025 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -82,7 +82,7 @@ template class is_like_std_string { public: static FMT_CONSTEXPR_DECL const bool value = - !std::is_void(FMT_NULL))>::value; + is_string::value || !std::is_void(FMT_NULL))>::value; }; template