Skip to content

Commit

Permalink
Instantiate to_decimal to make gcc lto happy (#1955)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Nov 1, 2020
1 parent 28a8eae commit 556a1cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/format.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down

0 comments on commit 556a1cf

Please sign in to comment.