From 556a1cfb34000978e819df73db2c53cecfee1d20 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 27 Oct 2020 07:44:12 -0700 Subject: [PATCH] Instantiate to_decimal to make gcc lto happy (#1955) --- src/format.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/format.cc b/src/format.cc index 72713416..88565e60 100644 --- a/src/format.cc +++ b/src/format.cc @@ -23,6 +23,11 @@ int format_float(char* buf, std::size_t size, const char* format, int precision, return precision < 0 ? snprintf_ptr(buf, size, format, value) : snprintf_ptr(buf, size, format, precision, value); } + +template dragonbox::decimal_fp dragonbox::to_decimal(float x) + FMT_NOEXCEPT; +template dragonbox::decimal_fp dragonbox::to_decimal(double x) + FMT_NOEXCEPT; } // namespace detail template struct FMT_INSTANTIATION_DEF_API detail::basic_data;