Update format_to taking a buffer and remove undocumented vformat_to overload

This commit is contained in:
Victor Zverovich
2021-05-30 07:33:02 -07:00
parent 832ec098fc
commit 11a14db286
5 changed files with 19 additions and 26 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ TEST(format_impl_test, format_error_code) {
std::string msg = "error 42", sep = ": ";
{
fmt::memory_buffer buffer;
format_to(buffer, "garbage");
format_to(fmt::appender(buffer), "garbage");
fmt::detail::format_error_code(buffer, 42, "test");
EXPECT_EQ("test: " + msg, to_string(buffer));
}