From ea6f0bf0e555c744fccbc0f6aa0e52b0429964cd Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 21 Feb 2022 07:29:36 -0800 Subject: [PATCH] Minor cleanup --- include/fmt/format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 1d4d3cb8..4b62b3c9 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2260,7 +2260,8 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, precision = 1; } if (const_check(std::is_same())) fspecs.binary32 = true; - if (const_check(!std::numeric_limits::is_iec559 || std::numeric_limits::digits > 64)) + using limits = std::numeric_limits; + if (const_check(!limits::is_iec559 || limits::digits > 64)) fspecs.fallback = true; int exp = format_float(convert_float(value), precision, fspecs, buffer); fspecs.precision = precision; @@ -2271,9 +2272,8 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, template ::value)> FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { - if (is_constant_evaluated()) { + if (is_constant_evaluated()) return write(out, value, basic_format_specs()); - } if (const_check(!is_supported_floating_point(value))) return out;