Because grisu_format does "import" when sizeof(Double) == sizeof(uint64_t)

So we have to "export" here also.
This commit is contained in:
denchat 2019-05-11 18:57:18 +07:00 committed by GitHub
parent f1fd5accaf
commit 659567c4d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -683,7 +683,7 @@ template <int GRISU_VERSION> struct grisu_shortest_handler {
};
template <typename Double, FMT_ENABLE_IF_T(sizeof(Double) == sizeof(uint64_t))>
FMT_FUNC bool grisu_format(Double value, buffer<char>& buf, int precision,
FMT_FUNC FMT_API bool grisu_format(Double value, buffer<char>& buf, int precision,
unsigned options, int& exp) {
FMT_ASSERT(value >= 0, "value is negative");
bool fixed = (options & grisu_options::fixed) != 0;