Unverified Commit ca1eaedf authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Update test_daily_logger.cpp

parent 8bd5f4f8
...@@ -87,10 +87,11 @@ TEST_CASE("daily_logger with custom calculator", "[daily_logger]") ...@@ -87,10 +87,11 @@ TEST_CASE("daily_logger with custom calculator", "[daily_logger]")
#ifdef SPDLOG_WCHAR_FILENAMES #ifdef SPDLOG_WCHAR_FILENAMES
spdlog::memory_buf_t buf; spdlog::memory_buf_t buf;
spdlog::details::os::wstr_to_utf8buf(fmt::to_string(w), buf);
# ifdef SPDLOG_USE_STD_FORMAT # ifdef SPDLOG_USE_STD_FORMAT
spdlog::details::os::wstr_to_utf8buf(w, buf);
auto &filename = buf; auto &filename = buf;
# else # else
spdlog::details::os::wstr_to_utf8buf(fmt::to_string(w), buf);
auto filename = fmt::to_string(buf); auto filename = fmt::to_string(buf);
# endif # endif
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment