Add an overload of write for buffer_appender

This commit is contained in:
Victor Zverovich
2020-07-11 07:33:25 -07:00
parent d870468159
commit e4f57bfd7f
2 changed files with 9 additions and 2 deletions

View File

@@ -81,9 +81,9 @@ TEST(UtilTest, FormatWindowsError) {
EXPECT_EQ(fmt::format("test: {}", utf8_message.str()),
fmt::to_string(actual_message));
actual_message.resize(0);
auto max_size = fmt::detail::max_value<size_t>();
auto max_size = fmt::detail::max_value<long long>();
fmt::detail::format_windows_error(actual_message, ERROR_FILE_EXISTS,
fmt::string_view(0, max_size));
fmt::string_view(nullptr, max_size));
EXPECT_EQ(fmt::format("error {}", ERROR_FILE_EXISTS),
fmt::to_string(actual_message));
}