From 8add895f67a3025ca834ffc1a7db38561cd8a545 Mon Sep 17 00:00:00 2001 From: Bousk Date: Fri, 20 Apr 2018 15:33:24 +0100 Subject: [PATCH] Update step_file_sink.h --- include/spdlog/contrib/sinks/step_file_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/contrib/sinks/step_file_sink.h b/include/spdlog/contrib/sinks/step_file_sink.h index 6be4d8ef..1d69f0bb 100644 --- a/include/spdlog/contrib/sinks/step_file_sink.h +++ b/include/spdlog/contrib/sinks/step_file_sink.h @@ -48,7 +48,7 @@ struct default_step_file_name_calculator std::tm tm = spdlog::details::os::localtime(); filename_t basename, ext; std::tie(basename, ext) = details::file_helper::split_by_extenstion(filename); - std::conditional::value, fmt::MemoryWriter, fmt::WMemoryWriter>::type w; + std::conditional::value, fmt::BasicMemoryWriter>, fmt::BasicMemoryWriter>>::type w; w.write(SPDLOG_FILENAME_T("{}_{:04d}-{:02d}-{:02d}_{:02d}-{:02d}-{:02d}{}"), basename, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, tmp_ext); return std::make_tuple(w.str(), ext);