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
This commit is contained in:
denchat 2021-04-12 11:54:19 +07:00 committed by GitHub
parent 66f6f54b5e
commit 9687bce2f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ vformat_to(buffer<char>&, string_view,
type_identity_t<char>>>);
} // namespace detail
template struct FMT_INSTANTIATION_DEF_API detail::basic_data<void>;
template struct detail::basic_data<void>;
// Workaround a bug in MSVC2013 that prevents instantiation of format_float.
int (*instantiate_format_float)(double, int, detail::float_specs,