mirror of
https://github.com/gabime/spdlog.git
synced 2026-04-10 11:34:29 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user