From 48327a82e335fda96eb184602d84c562ddb372c2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 1 Sep 2022 17:06:28 -0700 Subject: [PATCH] Make format.h compile faster --- include/fmt/format.h | 3 +++ src/format.cc | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index cd5755cf..f7263354 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -4158,6 +4158,9 @@ void vformat_to(buffer& buf, basic_string_view fmt, } #ifndef FMT_HEADER_ONLY +extern template FMT_API void vformat_to( + buffer&, string_view, basic_format_args, + locale_ref); extern template FMT_API auto thousands_sep_impl(locale_ref) -> thousands_sep_result; extern template FMT_API auto thousands_sep_impl(locale_ref) diff --git a/src/format.cc b/src/format.cc index 5d8d97bd..d0a7317f 100644 --- a/src/format.cc +++ b/src/format.cc @@ -31,9 +31,6 @@ template FMT_API auto decimal_point_impl(locale_ref) -> char; template FMT_API void buffer::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&, string_view, basic_format_args, locale_ref);