Don't use deprecated checked_array_iterator

This commit is contained in:
Victor Zverovich
2023-07-20 07:06:32 -07:00
parent 661b23edeb
commit 9bea6ec04a
3 changed files with 10 additions and 29 deletions

View File

@@ -1674,8 +1674,7 @@ TEST(format_test, format_custom) {
TEST(format_test, format_to_custom) {
char buf[10] = {};
auto end =
&*fmt::format_to(fmt::detail::make_checked(buf, 10), "{}", Answer());
auto end = fmt::format_to(buf, "{}", Answer());
EXPECT_EQ(end, buf + 2);
EXPECT_STREQ(buf, "42");
}