From dbb4bfe389b53c84a06fc9529ef57aa82afccb06 Mon Sep 17 00:00:00 2001 From: Rao Meng Date: Sun, 11 Sep 2022 17:19:36 +0800 Subject: [PATCH] minor change --- test/enc_dec_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/enc_dec_test.cc b/test/enc_dec_test.cc index afc121a..cfa46f3 100644 --- a/test/enc_dec_test.cc +++ b/test/enc_dec_test.cc @@ -51,7 +51,7 @@ struct fmt::formatter : formatter template void test(const S& format, Args&&... args) { fmt::detail::check_format_string(format); - auto sv = fmt::detail::to_string_view(format); + auto sv = fmt::string_view(format); size_t formatted_size = fmt::formatted_size(fmt::runtime(sv), std::forward(args)...); string ans = fmt::format(fmt::runtime(sv), std::forward(args)...); assert(ans.size() == formatted_size);