Support C++20 std::format as an alternative to fmtlib
This commit is contained in:
@@ -10,7 +10,7 @@ using spdlog::details::file_helper;
|
||||
static void write_with_helper(file_helper &helper, size_t howmany)
|
||||
{
|
||||
spdlog::memory_buf_t formatted;
|
||||
fmt::format_to(std::back_inserter(formatted), "{}", std::string(howmany, '1'));
|
||||
spdlog::fmt_lib::format_to(std::back_inserter(formatted), "{}", std::string(howmany, '1'));
|
||||
helper.write(formatted);
|
||||
helper.flush();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user