From 9687bce2f19818830d05a22d81f8366327faa532 Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Mon, 12 Apr 2021 11:54:19 +0700 Subject: [PATCH] Move FMT_INSTANTIATION_DEF_API to the declaration Move FMT_INSTANTIATION_DEF_API to the declaration in format.h [MinGW] Fix dllexport of explicit template instantiation https://reviews.llvm.org/D61118 --- src/format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format.cc b/src/format.cc index 6141d964..22fda622 100644 --- a/src/format.cc +++ b/src/format.cc @@ -55,7 +55,7 @@ vformat_to(buffer&, string_view, type_identity_t>>); } // namespace detail -template struct FMT_INSTANTIATION_DEF_API detail::basic_data; +template struct detail::basic_data; // Workaround a bug in MSVC2013 that prevents instantiation of format_float. int (*instantiate_format_float)(double, int, detail::float_specs,