From 9975c012045a63a9b0ecda3ce9a053503b521de1 Mon Sep 17 00:00:00 2001 From: hjiang Date: Tue, 17 Dec 2024 19:20:13 +0000 Subject: [PATCH] fix compilation on windows --- tests/test_file_logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_file_logging.cpp b/tests/test_file_logging.cpp index 7a9ffd75..01036cdd 100644 --- a/tests/test_file_logging.cpp +++ b/tests/test_file_logging.cpp @@ -153,7 +153,7 @@ TEST_CASE("rotating_file_logger5", "[rotating_logger]") { return filename; } const auto old_fname = spdlog::sinks::rotating_file_sink_st::calc_filename(filename, index); - return old_fname + ".test_suffix"; + return spdlog::fmt_lib::format("{}.test_suffix", old_fname); }); auto logger = std::make_shared("rotating_sink_logger", sink);