From 6c975fa13b01116c2ba9b0f3af336ad28f16e2f9 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 31 Oct 2022 18:43:38 +0200 Subject: [PATCH] Replace fmt::detail::vformat_to(buf,..) with fmt::vformat_to(fmt::appender(buf) --- include/spdlog/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 8f83e81b..8aaf4b35 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -398,7 +398,7 @@ protected: fmt_lib::vformat_to( std::back_inserter(wbuf), fmt, fmt_lib::make_format_args(std::forward(args)...)); # else - fmt::detail::vformat_to(wbuf, fmt, fmt::make_format_args(std::forward(args)...)); + fmt::vformat_to(fmt::appender(wbuf), fmt, fmt::make_format_args(std::forward(args)...)); # endif memory_buf_t buf;