Avoid extra copy

This commit is contained in:
Victor Zverovich
2018-10-17 08:19:46 -07:00
parent 98f1c1fe87
commit e8efdef8de
3 changed files with 14 additions and 15 deletions

View File

@@ -104,7 +104,8 @@ TEST(FPTest, GetCachedPower) {
TEST(FPTest, Grisu2FormatCompilesWithNonIEEEDouble) {
size_t size = 0;
grisu2_format(4.2f, FMT_NULL, size, fmt::internal::grisu2_specs());
fmt::memory_buffer buf;
grisu2_format(4.2f, buf, fmt::internal::grisu2_specs());
}
template <typename T>