From bf324a11cdc9165c735465a4022298fb6c4562be Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Fri, 6 Sep 2019 10:06:00 +0900 Subject: [PATCH] made the declarations in fmt.c match the ones in fmt-6.0.0 --- src/fmt.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/fmt.cpp b/src/fmt.cpp index 6553f88d..046980fa 100644 --- a/src/fmt.cpp +++ b/src/fmt.cpp @@ -16,21 +16,19 @@ template FMT_API std::locale internal::locale_ref::get() const; // Explicit instantiations for char. template FMT_API char internal::thousands_sep_impl(locale_ref); -template FMT_API void internal::basic_buffer::append(const char *, const char *); +template FMT_API char internal::decimal_point_impl(locale_ref); +template FMT_API void internal::buffer::append(const char *, const char *); template FMT_API void internal::arg_map::init(const basic_format_args &args); -template FMT_API int internal::char_traits::format_float(char *, std::size_t, const char *, int, double); -template FMT_API int internal::char_traits::format_float(char *, std::size_t, const char *, int, long double); template FMT_API std::string internal::vformat(string_view, basic_format_args); -template FMT_API format_context::iterator internal::vformat_to(internal::buffer &, string_view, basic_format_args); -template FMT_API void internal::sprintf_format(double, internal::buffer &, core_format_specs); -template FMT_API void internal::sprintf_format(long double, internal::buffer &, core_format_specs); +template FMT_API format_context::iterator internal::vformat_to(internal::buffer &, string_view, basic_format_args); +template FMT_API char* internal::sprintf_format(double, internal::buffer &, sprintf_specs); +template FMT_API char* internal::sprintf_format(long double, internal::buffer &, sprintf_specs); // Explicit instantiations for wchar_t. template FMT_API wchar_t internal::thousands_sep_impl(locale_ref); -template FMT_API void internal::basic_buffer::append(const wchar_t *, const wchar_t *); +template FMT_API wchar_t internal::decimal_point_impl(locale_ref); +template FMT_API void internal::buffer::append(const wchar_t *, const wchar_t *); template FMT_API void internal::arg_map::init(const basic_format_args &); -template FMT_API int internal::char_traits::format_float(wchar_t *, std::size_t, const wchar_t *, int, double); -template FMT_API int internal::char_traits::format_float(wchar_t *, std::size_t, const wchar_t *, int, long double); template FMT_API std::wstring internal::vformat(wstring_view, basic_format_args); FMT_END_NAMESPACE