From 28882fa1e3500448430021c7a4c48d997224aa9c Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Fri, 9 Apr 2021 01:50:08 +0700 Subject: [PATCH] Add the template instantiation declaration Add the template instantiation **declaration** of `basic_data` the the template instantiation **definition** is in `format.cc` --- include/fmt/format.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index 890ecb16..95759b72 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -4025,6 +4025,10 @@ constexpr detail::udl_arg operator"" _a(const wchar_t* s, size_t) { } } // namespace literals #endif // FMT_USE_USER_DEFINED_LITERALS + +namespace detail { +extern template struct FMT_INSTANTIATION_DEF_API fmt::detail::basic_data; +} // namespace detail FMT_END_NAMESPACE #ifdef FMT_HEADER_ONLY