Fix compilation on platforms with exotic double (#878)

This commit is contained in:
Victor Zverovich
2018-09-26 08:45:34 -07:00
parent e4ca37ccf6
commit d7f17613f5
3 changed files with 18 additions and 5 deletions

View File

@@ -102,6 +102,11 @@ TEST(FPTest, GetCachedPower) {
}
}
TEST(FPTest, Grisu2FormatCompilesWithNonIEEEDouble) {
size_t size = 0;
fmt::internal::grisu2_format(4.2f, FMT_NULL, size, 0, 0, false);
}
template <typename T>
struct ValueExtractor: fmt::internal::function<T> {
T operator()(T value) {