Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Rao Meng committed Sep 11, 2022
1 parent 465ee20 commit dbb4bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/enc_dec_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct fmt::formatter<MovableType> : formatter<int>
template<typename S, typename... Args>
void test(const S& format, Args&&... args) {
fmt::detail::check_format_string<Args...>(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>(args)...);
string ans = fmt::format(fmt::runtime(sv), std::forward<Args>(args)...);
assert(ans.size() == formatted_size);
Expand Down

0 comments on commit dbb4bfe

Please sign in to comment.