Skip to content
forked from fmtlib/fmt

Commit

Permalink
Update format_to usage
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jul 13, 2021
1 parent e41ac1f commit 2038bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fuzzing/chrono-duration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ void invoke_inner(fmt::string_view format_str, Rep rep) {
#if FMT_FUZZ_FORMAT_TO_STRING
std::string message = fmt::format(format_str, value);
#else
fmt::memory_buffer buf;
fmt::format_to(buf, format_str, value);
auto buf = fmt::memory_buffer();
fmt::format_to(std::back_inserter(buf), format_str, value);
#endif
} catch (std::exception&) {
}
Expand Down

0 comments on commit 2038bf6

Please sign in to comment.