From 8c56cafa59e2276f898f87c4377cd7be0b702141 Mon Sep 17 00:00:00 2001 From: Shen-Ta Hsieh Date: Fri, 19 Nov 2021 10:25:11 +0800 Subject: [PATCH] Avoid MSVC 2013 workaround used in gcc/clang --- src/fmt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fmt.cpp b/src/fmt.cpp index 536aa675..c9fdd3ae 100644 --- a/src/fmt.cpp +++ b/src/fmt.cpp @@ -29,7 +29,9 @@ template FMT_API dragonbox::decimal_fp dragonbox::to_decimal(double x) F } // namespace detail // Workaround a bug in MSVC2013 that prevents instantiation of format_float. +#if !defined(__GNUC__) && !defined(__clang__) 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);