From 486fff597c031d18c9d6ab3991670d423b7167c0 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 24 Oct 2018 15:25:10 -0700 Subject: [PATCH] Add sprintf_format instantiations and remove syntactic noise --- include/fmt/core.h | 1 - src/format.cc | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index d938bb51..1992c694 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -411,7 +411,6 @@ class basic_string_view { } friend bool operator<(basic_string_view lhs, basic_string_view rhs) { return lhs.compare(rhs) < 0; - } friend bool operator<=(basic_string_view lhs, basic_string_view rhs) { return lhs.compare(rhs) <= 0; diff --git a/src/format.cc b/src/format.cc index bc8ac649..cd291294 100644 --- a/src/format.cc +++ b/src/format.cc @@ -28,6 +28,11 @@ template FMT_API int internal::char_traits::format_float( template FMT_API std::string internal::vformat( 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); + // Explicit instantiations for wchar_t. template FMT_API wchar_t internal::thousands_sep(locale_provider *);