From 0b0f7cfbfcebd021c910078003d413354bd843e2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 1 Sep 2022 09:18:53 -0700 Subject: [PATCH] hip workaround --- include/fmt/format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index b2dbad04..7b200c4d 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1625,7 +1625,9 @@ auto snprintf_float(T value, int precision, float_specs specs, template using convert_float_result = - conditional_t::value || sizeof(T) == sizeof(double), + conditional_t::value || + std::numeric_limits::digits == + std::numeric_limits::digits, double, T>; template