mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
Fixed format_to deprecated warning by wrapping the buffer with std::back_inserter
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(formatted, "{}", std::string(howmany, '1'));
|
||||
fmt::format_to(std::back_inserter(formatted), "{}", std::string(howmany, '1'));
|
||||
helper.write(formatted);
|
||||
helper.flush();
|
||||
}
|
||||
|
Reference in New Issue
Block a user