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 7977c2b4d0
commit cb224ecaa3

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)
: 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
template struct FMT_INSTANTIATION_DEF_API detail::basic_data<void>;