From ff5278b4b2a7f54dac770f2f4095e0729bfbea7b Mon Sep 17 00:00:00 2001 From: Shen-Ta Hsieh Date: Fri, 19 Nov 2021 13:50:46 +0800 Subject: [PATCH] Avoid MSVC 2013 workaround used in other compilers --- src/format.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/format.cc b/src/format.cc index ecb8cc79..2fb4e7dc 100644 --- a/src/format.cc +++ b/src/format.cc @@ -77,8 +77,10 @@ template FMT_API dragonbox::decimal_fp dragonbox::to_decimal(double x) } // namespace detail // Workaround a bug in MSVC2013 that prevents instantiation of format_float. +#if FMT_MSC_VER != 0 && FMT_MSC_VER <= 1800 int (*instantiate_format_float)(double, int, detail::float_specs, detail::buffer&) = detail::format_float; +#endif #ifndef FMT_STATIC_THOUSANDS_SEPARATOR template FMT_API detail::locale_ref::locale_ref(const std::locale& loc);