From 60bceae2f454792f656cb2ce78e63163e6951813 Mon Sep 17 00:00:00 2001 From: Walter Gray Date: Thu, 3 Dec 2020 20:23:59 -0800 Subject: [PATCH] fixup chrono.h with better notes about MSVC workaround --- include/fmt/chrono.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 7e28e199..5cec7367 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -770,8 +770,8 @@ template >(val)); #else @@ -821,7 +821,7 @@ OutputIt format_duration_unit(OutputIt out) { return copy_unit(string_view(unit), out, Char()); static FMT_CONSTEXPR_DECL const Char num_f[] = {'[', '{', '}', ']', 's', 0}; if (const_check(Period::den == 1)) { -#if FMT_MSC_VER && FMT_MSC_VER <= 1928 +#if FMT_MSC_VER return vformat_to(out, to_string_view(num_f), make_format_args>(Period::num)); #else @@ -830,7 +830,7 @@ OutputIt format_duration_unit(OutputIt out) { } static FMT_CONSTEXPR_DECL const Char num_def_f[] = {'[', '{', '}', '/', '{', '}', ']', 's', 0}; -#if FMT_MSC_VER && FMT_MSC_VER <= 1928 +#if FMT_MSC_VER return vformat_to( out, to_string_view(num_def_f), make_format_args>(Period::num, Period::den));