mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-05 02:27:45 +00:00
Update format_to usage
This commit is contained in:
parent
e41ac1f875
commit
2038bf6183
@ -13,8 +13,8 @@ void invoke_inner(fmt::string_view format_str, Rep rep) {
|
|||||||
#if FMT_FUZZ_FORMAT_TO_STRING
|
#if FMT_FUZZ_FORMAT_TO_STRING
|
||||||
std::string message = fmt::format(format_str, value);
|
std::string message = fmt::format(format_str, value);
|
||||||
#else
|
#else
|
||||||
fmt::memory_buffer buf;
|
auto buf = fmt::memory_buffer();
|
||||||
fmt::format_to(buf, format_str, value);
|
fmt::format_to(std::back_inserter(buf), format_str, value);
|
||||||
#endif
|
#endif
|
||||||
} catch (std::exception&) {
|
} catch (std::exception&) {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user