Replace fmt_helper::to_string by a macro

This commit is contained in:
Charles Milette
2022-04-26 23:25:35 -04:00
parent 37dd6bb159
commit cd4f6c1466
4 changed files with 12 additions and 13 deletions

View File

@@ -33,7 +33,6 @@
# if defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) || defined(SPDLOG_WCHAR_FILENAMES)
# include <limits>
# include <spdlog/details/fmt_helper.h>
# endif
# include <direct.h> // for _mkdir/_wmkdir
@@ -389,7 +388,7 @@ SPDLOG_INLINE std::string filename_to_str(const filename_t &filename)
{
memory_buf_t buf;
wstr_to_utf8buf(filename, buf);
return fmt_helper::to_string(std::move(buf));
return SPDLOG_BUF_TO_STRING(buf);
}
#else
SPDLOG_INLINE std::string filename_to_str(const filename_t &filename)