Make format.h compile faster

This commit is contained in:
Victor Zverovich
2022-09-01 17:06:28 -07:00
parent b79ed4105a
commit 48327a82e3
2 changed files with 3 additions and 3 deletions

View File

@@ -4158,6 +4158,9 @@ void vformat_to(buffer<Char>& buf, basic_string_view<Char> fmt,
} }
#ifndef FMT_HEADER_ONLY #ifndef FMT_HEADER_ONLY
extern template FMT_API void vformat_to(
buffer<char>&, string_view, basic_format_args<FMT_BUFFER_CONTEXT(char)>,
locale_ref);
extern template FMT_API auto thousands_sep_impl<char>(locale_ref) extern template FMT_API auto thousands_sep_impl<char>(locale_ref)
-> thousands_sep_result<char>; -> thousands_sep_result<char>;
extern template FMT_API auto thousands_sep_impl<wchar_t>(locale_ref) extern template FMT_API auto thousands_sep_impl<wchar_t>(locale_ref)

View File

@@ -31,9 +31,6 @@ template FMT_API auto decimal_point_impl(locale_ref) -> char;
template FMT_API void buffer<char>::append(const char*, const char*); template FMT_API void buffer<char>::append(const char*, const char*);
// DEPRECATED!
// There is no correspondent extern template in format.h because of
// incompatibility between clang and gcc (#2377).
template FMT_API void vformat_to(buffer<char>&, string_view, template FMT_API void vformat_to(buffer<char>&, string_view,
basic_format_args<FMT_BUFFER_CONTEXT(char)>, basic_format_args<FMT_BUFFER_CONTEXT(char)>,
locale_ref); locale_ref);