Fix deprecated copy constructor usage of fmt::format_string (#3541)

* Fix deprecated copy constructor usage of fmt::format_string

* Fix copy constructor usage of fmt::wformat_string_t

* Fix usage of std::basic_format_string

* remove spdlog::to_string_view()
This commit is contained in:
Yancey
2026-02-23 08:10:25 +08:00
committed by GitHub
parent c49c7cf960
commit 1685e694c5
5 changed files with 136 additions and 36 deletions

View File

@@ -4,7 +4,11 @@
#include <chrono>
using spdlog::memory_buf_t;
using spdlog::details::to_string_view;
SPDLOG_CONSTEXPR_FUNC spdlog::string_view_t to_string_view(const memory_buf_t &buf)
SPDLOG_NOEXCEPT {
return spdlog::string_view_t{buf.data(), buf.size()};
}
// log to str and return it
template <typename... Args>