Instantiate to_decimal to make gcc lto happy (#1955)

This commit is contained in:
Victor Zverovich 2020-10-27 07:44:12 -07:00
parent 28a8eae850
commit 556a1cfb34

View File

@ -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) return precision < 0 ? snprintf_ptr(buf, size, format, value)
: snprintf_ptr(buf, size, format, precision, value); : snprintf_ptr(buf, size, format, precision, value);
} }
template dragonbox::decimal_fp<float> dragonbox::to_decimal(float x)
FMT_NOEXCEPT;
template dragonbox::decimal_fp<double> dragonbox::to_decimal(double x)
FMT_NOEXCEPT;
} // namespace detail } // namespace detail
template struct FMT_INSTANTIATION_DEF_API detail::basic_data<void>; template struct FMT_INSTANTIATION_DEF_API detail::basic_data<void>;