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;